File: ruby.js

package info (click to toggle)
god 0.7.18-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 888 kB
  • ctags: 953
  • sloc: ruby: 5,516; ansic: 241; makefile: 128; sh: 27
file content (18 lines) | stat: -rwxr-xr-x 418 bytes parent folder | download | duplicates (2)
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_!?]+)/
	}
});