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

Function parseWords

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

Source from the content-addressed store, hash-verified

13
14CodeMirror.defineMode("velocity", function() {
15 function parseWords(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 = parseWords("#end #else #break #stop #[[ #]] " +
22 "#{end} #{else} #{break} #{stop}");

Callers 1

velocity.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected