Sha256: 55df75b0c7f6330073d5de9740059509eaf0821b95dd85fd61cbd02ffa3adff9

Contents?: true

Size: 513 Bytes

Versions: 43

Compression:

Stored size: 513 Bytes

Contents

CodeHighlighter.addStyle("rb",{
	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|raise)\b/
	},
  constant : {
    exp  : /\b([A-Z]\w+)\b/
  },
  ivar : {
    exp  : /([^@])(@{1,2}\w+)\b/
  },
  ns   : {
    exp  : /(:{2,})/
  },
	symbol : {
	  exp : /(:[A-Za-z0-9_!?]+)/
	}
});

Version data entries

43 entries across 43 versions & 3 rubygems

Version Path
green_shoes-1.1.374 static/code_highlighter_ruby.js
green_shoes-1.1.373 static/code_highlighter_ruby.js
green_shoes-1.1.367 static/code_highlighter_ruby.js
green_shoes-1.1.366 static/code_highlighter_ruby.js
green_shoes-1.1.365 static/code_highlighter_ruby.js
green_shoes-1.1.364 static/code_highlighter_ruby.js
green_shoes-1.1.363 static/code_highlighter_ruby.js
green_shoes-1.1.362 static/code_highlighter_ruby.js
purple_shoes-0.7.166 static/code_highlighter_ruby.js
purple_shoes-0.6.153 static/code_highlighter_ruby.js
purple_shoes-0.5.149 static/code_highlighter_ruby.js
purple_shoes-0.0.126 static/code_highlighter_ruby.js
purple_shoes-0.0.115 static/code_highlighter_ruby.js
green_shoes-1.1.358 static/code_highlighter_ruby.js
purple_shoes-0.0.101 static/code_highlighter_ruby.js
green_shoes-1.1.357 static/code_highlighter_ruby.js
green_shoes-1.1.354 static/code_highlighter_ruby.js
green_shoes-1.1.348 static/code_highlighter_ruby.js
green_shoes-1.0.337 static/code_highlighter_ruby.js
green_shoes-1.0.331 static/code_highlighter_ruby.js