Skip to content
Snippets Groups Projects
Commit 4f461daa authored by dgelessus's avatar dgelessus
Browse files

Support subscripts and primes in identifier syntax highlighting

parent 42f69ce1
Branches
Tags
No related merge requests found
......@@ -183,7 +183,7 @@ define([
} else if (stream.match(/^[\s()\[\]{},]+/)) {
return null;
} else {
const variable = stream.match(/^[\p{L}_][\p{L}0-9_]*/u);
const variable = stream.match(/^[\p{L}_][\p{L}0-9_]*[₀-₉]*[‘’′]*/u);
if (variable) {
// Check if the variable name is actually a keyword that should be highlighted differently.
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