Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differentiate data constructor names from type names #28

Merged
merged 2 commits into from
May 24, 2022

Conversation

J3RN
Copy link
Member

@J3RN J3RN commented May 24, 2022

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

Copy link
Member

@the-mikedavis the-mikedavis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet, I like this being finer grained in the parser and highlights 👍

@J3RN J3RN merged commit aed23b2 into gleam-lang:main May 24, 2022
@J3RN J3RN deleted the differentiate-constructors-types branch May 24, 2022 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants