gleam-lang / tree-sitter-gleam

🌳 A tree-sitter grammar for the Gleam programming language
Apache License 2.0
66 stars 13 forks source link

Remove support for 'try' from the parser #74

Closed the-mikedavis closed 10 months ago

the-mikedavis commented 10 months ago

This was 'soft-removed' in the past by removing the highlights and test cases but we held off on fully removing the parser support. This finishes the job so that 'try' is no longer treated as a keyword. This should fix the integration tests. Previously they would fail against some code in the stdlib which used 'try' as a regular variable name.

What do you think @J3RN? I think we were keeping this around for backwards compatibility but it's been a few minor releases since it was removed (this change would target 0.32.0). I think it'd be nice to fully remove it so the integration tests are passing again.