MCPcopy Create free account
hub / github.com/existentialmutt/lt-ruby / wordObj

Function wordObj

codemirror/ruby.js:2–6  ·  view source on GitHub ↗
(words)

Source from the content-addressed store, hash-verified

1CodeMirror.defineMode("ruby", function(config) {
2 function wordObj(words) {
3 var o = {};
4 for (var i = 0, e = words.length; i < e; ++i) o[words[i]] = true;
5 return o;
6 }
7 var keywords = wordObj([
8 "alias", "and", "BEGIN", "begin", "break", "case", "class", "def", "defined?", "do", "else",
9 "elsif", "END", "end", "ensure", "false", "for", "if", "in", "module", "next", "not", "or",

Callers 1

ruby.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected