Merge branch 'master' into merge

This commit is contained in:
Andy Friesen 2023-09-15 09:28:09 -07:00
commit 55d7a9912d

View file

@ -17,10 +17,10 @@
var indentUnit = 4; var indentUnit = 4;
function prefixRE(words) { function prefixRE(words) {
return new RegExp("^(?:" + words.join("|") + ")", "i"); return new RegExp("^(?:" + words.join("|") + ")");
} }
function wordRE(words) { function wordRE(words) {
return new RegExp("^(?:" + words.join("|") + ")$", "i"); return new RegExp("^(?:" + words.join("|") + ")$");
} }
var specials = wordRE(parserConfig.specials || ["type"]); var specials = wordRE(parserConfig.specials || ["type"]);