Sublime Forum

Remember variable names in syntax highlighting

#1

I’m not sure if this is possible. But I’m developing some syntax highlighting for a custom programming language and I’m wondering if it’s possible to identify variables names based on their declaration and then to remember to highlight them later.

declare SomeVariable = vc
set SomeVariable = "Hello"

... Later in the code....
SomeOtherSariable = SomeVariable + " World!"

Is there a way to make the syntax remember that SomeVariable is a variable and highlight it later?

I have a few other instances where something like this would be helpful, I’m just not sure how to accomplish it.

0 Likes

#2

No, this is not possible.

0 Likes