gleam-lang / tree-sitter-gleam

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

Allow function bodies to be optional #68

Closed the-mikedavis closed 1 year ago

the-mikedavis commented 1 year 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.