Closed seratch closed 4 years ago
Random hunch: does the order of definitions inside the language file matter? (< being matched in literal-function or on the contrary on the types: part)
GitHub uses this grammar to highlight all kotlin files Linguist. Example of broken highlighting https://git.io/Jfsdc. The root cause: <
symbol parses as punctuation.definition.generic.begin.kotlin
instead of keyword.operator.comparison.kotlin
Isn't there a way to make the tokenizer also have a context which can allow this situation to be disambiguated?
Having
<=
in if statements breaks highlighting.Screen shot as of Oct 2019: