MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / keywords

Function keywords

static/js/codemirror/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 1

splitMethod · 0.45

Tested by

no test coverage detected