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

Add a rule for left part of assignment: it'll be helpful to add scope… #37

Merged
merged 2 commits into from
Dec 17, 2019

Conversation

calixteman
Copy link
Contributor

…d_name_identifier (c++)

@calixteman
Copy link
Contributor Author

My goal is to have this rule in c++ grammar:

    _assignment_left_expression: ($, original) => prec.right(PREC.ASSIGNMENT, choice(
      original,
      $.scoped_namespace_identifier,
    )),

@maxbrunsfeld
Copy link
Contributor

This is a great idea. I rebased it and marked that rule as inline, so that its presence will not change the generated parser (but it can still be overridden in the C++ grammar).

@maxbrunsfeld maxbrunsfeld merged commit 6002fcd into tree-sitter:master Dec 17, 2019
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