mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-16 09:54:02 +01:00
Demo site: case sensitive highlighting (#1040)
Before:  After: 
This commit is contained in:
parent
c7c986b996
commit
a35d3d4588
1 changed files with 2 additions and 2 deletions
|
@ -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"]);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue