mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 14:25:44 +08:00
Demo site: case sensitive highlighting (#1040)
Before: ![image](https://github.com/Roblox/luau/assets/142684596/6a5ec602-9946-48aa-98c7-ddebc404c5dd) After: ![image](https://github.com/Roblox/luau/assets/142684596/d7a9bf3d-2163-417c-8407-43d65d6eca01)
This commit is contained in:
parent
c7c986b996
commit
a35d3d4588
@ -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"]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user