Skip to content
Sign up
Appearance settings

Fix parsing of object key starting with assert#169

Merged
lihaoyi-databricks merged 2 commits intomasterfrom
keyword-starting-identifier
Jun 2, 2023
Merged

Fix parsing of object key starting with assert#169
lihaoyi-databricks merged 2 commits intomasterfrom
keyword-starting-identifier

Conversation

@lihaoyi-databricks
Copy link
Copy Markdown
Contributor

@lihaoyi-databricks lihaoyi-databricks commented May 30, 2023

Fixes #152 and #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)

@lihaoyi-databricks lihaoyi-databricks merged commit e2506bf into master Jun 2, 2023
@stephenamar-db stephenamar-db deleted the keyword-starting-identifier branch April 18, 2025 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

assert keyword parsed eagerly

2 participants