Someon1e 2023-09-11 17:09:00 +01:00 committed by GitHub
parent c7c986b996
commit a35d3d4588
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"]);