gleam-lang / tree-sitter-gleam

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

Change constructor tracking to not use type #29

Closed J3RN closed 2 years ago

J3RN commented 2 years ago

For the tags queries, it seemed odd that we were using definition.type and reference.type for tracking constructors. However, none of the standard set of capture names seem applicable (maybe class?), so I made up constructor and hope that most systems don't hardcode the standard set.