gleam-lang / tree-sitter-gleam

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

Allow function bodies to be optional #68

Closed the-mikedavis closed 11 months ago

the-mikedavis commented 11 months ago

Closes #67

Ideally we would only allow this after attributes but that would complicate the grammar. I think it's ok to be a little more permissive here and allow functions to not have bodies - it will also provide slightly better highlighting as-you-type.