gleam-lang / tree-sitter-gleam

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

Support `panic` and `let assert` #45

Closed lpil closed 1 year ago

lpil commented 1 year ago

Hello!

The upcoming Gleam release as 2 syntax changes. panic (which can go anywhere an expression goes, like todo but without the string argument), and let assert <pattern> = <expression>, which is the new syntax for assert <pattern> = <expression>.

Thanks!

inoas commented 1 year ago

should assert simply be replaced by let assert or should both work?

lpil commented 1 year ago

Both are currently valid Gleam syntax.

inoas commented 1 year ago

https://github.com/gleam-lang/tree-sitter-gleam/pull/46 https://github.com/gleam-lang/tree-sitter-gleam/pull/48

J3RN commented 1 year ago

Closed by #46 and #50