Sha256: 7f1223d3a2eef52eae4681e5b3265d5cd68c1fd1cda793ace4825cc60ac117a4

Contents?: true

Size: 487 Bytes

Versions: 13

Compression:

Stored size: 487 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

13 entries across 13 versions & 5 rubygems

Version Path
scarpe-0.4.0 docs/static/code_highlighter_ruby.js
scarpe-0.3.0 docs/static/code_highlighter_ruby.js
scarpe-0.2.2 docs/static/code_highlighter_ruby.js
lacci-0.2.1 docs/static/code_highlighter_ruby.js
scarpe-0.2.1 docs/static/code_highlighter_ruby.js
scarpe-0.2.0 docs/static/code_highlighter_ruby.js
shoes-manual-4.0.1 static/code_highlighter_ruby.js
shoes-manual-4.0.0 static/code_highlighter_ruby.js
shoes-4.0.0.pre2 static/code_highlighter_ruby.js
shoes-4.0.0.pre1 static/code_highlighter_ruby.js
shoes-3.0.1 static/code_highlighter_ruby.js
shoesgem-0.1514.0 shoes/static/code_highlighter_ruby.js
shoesgem-0.1424.0 shoes/static/code_highlighter_ruby.js