more diagnostics
[god.git] / site / javascripts / ruby.js
blob7ec264697340e451731a71f5aa8601a47e66c2bd
1 CodeHighlighter.addStyle("ruby",{
2         comment : {
3                 exp  : /#[^\n]+/
4         },
5         brackets : {
6                 exp  : /\(|\)/
7         },
8         string : {
9                 exp  : /'[^']*'|"[^"]*"/
10         },
11         keywords : {
12                 exp  : /\b(do|end|self|class|def|if|module|yield|then|else|for|until|unless|while|elsif|case|when|break|retry|redo|rescue|require|raise)\b/
13         },
14         /* Added by Shelly Fisher (shelly@agileevolved.com) */
15         symbol : {
16           exp : /([^:])(:[A-Za-z0-9_!?]+)/
17         }
18 });