thurtle: Highlight CONSTANT, VARIABLE, and VALUE as definitions

This commit is contained in:
Remko Tronçon 2022-11-13 19:00:20 +01:00
parent 3a40d4bd1e
commit 4516fb92e1

View file

@ -82,7 +82,7 @@ export default class Editor {
}
parentEl.appendChild(document.createTextNode(v));
if (v === ":") {
if (v === ":" || v === "CONSTANT" || v === "VARIABLE" || v === "VALUE") {
nextIsDefinition = true;
} else if (v === "(") {
inComment = true;