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

Function wordRE

static/js/codemirror/mode/lua/lua.js:11–13  ·  view source on GitHub ↗
(words)

Source from the content-addressed store, hash-verified

9 return new RegExp("^(?:" + words.join("|") + ")", "i");
10 }
11 function wordRE(words) {
12 return new RegExp("^(?:" + words.join("|") + ")$", "i");
13 }
14 var specials = wordRE(parserConfig.specials || []);
15
16 // long list of standard functions from lua manual

Callers 1

lua.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected