- Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathruby.js
More file actions
Latest commit
executable file
·18 lines (18 loc) · 448 Bytes
/
Copy pathruby.js
File metadata and controls
executable file
·18 lines (18 loc) · 448 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CodeHighlighter.addStyle("ruby",{
comment : {
exp : /#[^\n]+/
},
brackets : {
exp : /\(|\)/
},
string : {
exp : /'[^'\\]*(\\.[^'\\]*)*'|"[^"\\]*(\\.[^"\\]*)*"/
},
keywords : {
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/
},
/* Added by Shelly Fisher (shelly@agileevolved.com) */
symbol : {
exp : /([^:])(:[A-Za-z0-9_!?]+)/
}
});