Skip to content
Snippets Groups Projects
Commit 42f69ce1 authored by dgelessus's avatar dgelessus
Browse files

Fix the variable highlighting regex

parent dbd019e7
No related branches found
No related tags found
No related merge requests found
...@@ -183,7 +183,7 @@ define([ ...@@ -183,7 +183,7 @@ define([
} else if (stream.match(/^[\s()\[\]{},]+/)) { } else if (stream.match(/^[\s()\[\]{},]+/)) {
return null; return null;
} else { } else {
const variable = stream.match(/^[\p{L}_][\p{L}0-9_]*/); const variable = stream.match(/^[\p{L}_][\p{L}0-9_]*/u);
if (variable) { if (variable) {
// Check if the variable name is actually a keyword that should be highlighted differently. // Check if the variable name is actually a keyword that should be highlighted differently.
if (variable in keywordClasses) { if (variable in keywordClasses) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment