MCPcopy Create free account
hub / github.com/TruthHun/BookStack / wordObj

Function wordObj

static/editor.md/lib/codemirror/mode/r/r.js:15–19  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

13
14CodeMirror.defineMode("r", function(config) {
15 function wordObj(str) {
16 var words = str.split(" "), res = {};
17 for (var i = 0; i < words.length; ++i) res[words[i]] = true;
18 return res;
19 }
20 var atoms = wordObj("NULL NA Inf NaN NA_integer_ NA_real_ NA_complex_ NA_character_");
21 var builtins = wordObj("list quote bquote eval return call parse deparse");
22 var keywords = wordObj("if else repeat while function for in next break");

Callers 1

r.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected