Case sensitive syntax highlighting

This commit is contained in:
Someon1e 2023-09-09 12:27:50 +01:00 committed by GitHub
parent c7c986b996
commit ad4a3ec88c
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

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