gleam-lang / tree-sitter-gleam

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

New todo and panic message syntax #62

Closed lpil closed 1 year ago

lpil commented 1 year ago

Hello!

The syntax for adding a message to panic and todo is now this

todo as "handle the case when..."
panic as "this is unreachable as..."

Currently only a string is permitted on the right hand side, but perhaps in future an expression would be supported. It may be good to have the tree sitter support parsing an expressions there to be more permissive than the compiler parser.