Skip to content
Snippets Groups Projects
Commit 9fe20534 authored by Oskar Segersvärd's avatar Oskar Segersvärd
Browse files

[soy mode] Add missing `\b`s to keyword regex

Closes #4468
parent 6d3783d0
No related branches found
No related tags found
No related merge requests found
......@@ -198,7 +198,7 @@
if (match = stream.match(/^\$([\w]+)/)) {
return ref(state.variables, match[1]);
}
if (stream.match(/(?:as|and|or|not|in)/)) {
if (stream.match(/\b(?:as|and|or|not|in)\b/)) {
return "keyword";
}
stream.next();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment