Replies: 1 comment
-
You could try a contextual match. I don't know your exact syntax, but if
a `Nil` type is followed by whitespace and then a word, you could match
that and highlight it was a type. Otherwise, highlight it was a constant.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The keyword
Nil
on the language has two meanings. It's both a constant and a type (the language doesn't useVoid
and reusedNil
for Void type). TextAdept doesn't have the power to parse the syntax of the language to correctly determine whenNil
is a constant and whenNil
is a type. This is really difficult to do.Beta Was this translation helpful? Give feedback.
All reactions