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

Function words

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

Source from the content-addressed store, hash-verified

13
14CodeMirror.defineMode("sieve", function(config) {
15 function words(str) {
16 var obj = {}, words = str.split(" ");
17 for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
18 return obj;
19 }
20
21 var keywords = words("if elsif else stop require");
22 var atoms = words("true false not");

Callers 1

sieve.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected