gleam-lang / tree-sitter-gleam

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

Differentiate data constructor names from type names #28

Closed J3RN closed 2 years ago

J3RN commented 2 years ago

Per @patrickt's comment, I determined that it was finally time to differentiate types and constructor names, especially since I discovered that the @constructor highlight exists.

While I could've fixed the highlighting by making the highlighting matching more specific, I figured it was time to stop lying and actually use a (constructor_name) node instead of (type_identifier) in places where we're not actually referencing a type.

Before before

After after

cc @the-mikedavis