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

Distinguish variables, types, fields and labels using renames #6

Merged
merged 8 commits into from
Aug 2, 2017

Conversation

maxbrunsfeld
Copy link
Contributor

@maxbrunsfeld maxbrunsfeld commented Jul 19, 2017

This PR updates the grammar to take advantage of tree-sitter's new contextual renames feature.

Similar to tree-sitter/tree-sitter-javascript#49, we now separate identifiers into type_name, variable_name, field_name, struct_name, enum_name, union_name, and label_name.

This will make it very easy to apply correct syntax highlighting.

@maxbrunsfeld maxbrunsfeld force-pushed the use-contextual-renames branch from 8666134 to 9e7706d Compare July 19, 2017 18:46
@joshvera
Copy link
Contributor

👍

@maxbrunsfeld maxbrunsfeld merged commit 1b9531b into master Aug 2, 2017
@maxbrunsfeld maxbrunsfeld deleted the use-contextual-renames branch August 2, 2017 22:54
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.

2 participants