From a35d3d458813c2d3b494784392ab724c853eefac Mon Sep 17 00:00:00 2001 From: Someon1e <142684596+Someon1e@users.noreply.github.com> Date: Mon, 11 Sep 2023 17:09:00 +0100 Subject: [PATCH] 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) --- docs/assets/js/luau_mode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/assets/js/luau_mode.js b/docs/assets/js/luau_mode.js index a5dcdc97..3bd86505 100644 --- a/docs/assets/js/luau_mode.js +++ b/docs/assets/js/luau_mode.js @@ -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"]);