gleam-lang / tree-sitter-gleam

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

Allow empty function bodies #36

Closed J3RN closed 2 years ago

J3RN commented 2 years ago

Counterpart to https://github.com/gleam-lang/gleam/pull/1688

While the Gleam parser adds a todo AST node when the function is blank, trying to replicate that here seems like it would be more work than it's worth.