mirror of
https://github.com/luau-lang/luau.git
synced 2025-01-19 09:18:07 +00: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
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…
Reference in a new issue