// ripped from softies on rails

CodeHighlighter.addStyle("ruby",{
	comment : {
		exp  : /#[^\n]+/
	},
	string : {
		exp  : /'[^']*'|"[^"]*"/
	},
	brackets : {
		exp  : /\(|\)/
	},
	defname : {
		exp : /def ([\w=]+)/,
		replacement : "<span class=\"keywords\">def </span><span class=\"$0\">$1</span>"
	},
	instvar : {
		exp : /@[\w]+/
	},
	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_!?]+)/
	}});