MCPcopy
hub / github.com/csev/py4e / wordRegexp

Function wordRegexp

tools/pythonauto/static/codemirrorepl/python.js:4–6  ·  view source on GitHub ↗
(words)

Source from the content-addressed store, hash-verified

2 var ERRORCLASS = 'error';
3
4 function wordRegexp(words) {
5 return new RegExp("^((" + words.join(")|(") + "))\\b");
6 }
7
8 var singleOperators = parserConf.singleOperators || new RegExp("^[\\+\\-\\*/%&|\\^~<>!]");
9 var singleDelimiters = parserConf.singleDelimiters || new RegExp('^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]');

Callers 1

python.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected