Added some tests to loop through all the keywords to make sure this behavior doesn't appear for any of the other ones, in the three distinct contexts I can think of where identifiers might appear (local variable declarations, expressions, and object keys)
Fixes https://github.com/databricks/sjsonnet/issues/152 and https://github.com/databricks/sjsonnet/issues/65. All the other places we parse keywords are followed by a
~~ break
to ensure the keyword ends there, so"assert"
should as well.Added some tests to loop through all the keywords to make sure this behavior doesn't appear for any of the other ones, in the three distinct contexts I can think of where identifiers might appear (local variable declarations, expressions, and object keys)