I’m working on improving an otherwise excellent ANTLR Kotlin grammar and I ran across failures resulting from Kotlin allowing some keywords to be used as identifiers (method/parameter names). Would you happen to have a comprehensive list of keywords that can act this way?
You can find the full list of Kotlin’s tokens here. Anything marked as softKeyword or softKeywordModifier is a context-dependent keyword, which can also be used as an identifier.
Is it then safe to assume the language does not maintain backwards compatibility?
This BTW is not a charged question, just a hint I need to design the grammar.