MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / keywords

Function keywords

mini-code-edit/cm/mode/php/php.js:2–6  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

1(function() {
2 function keywords(str) {
3 var obj = {}, words = str.split(" ");
4 for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
5 return obj;
6 }
7 function heredoc(delim) {
8 return function(stream, state) {
9 if (stream.match(delim)) state.tokenize = null;

Callers 1

php.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected