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

Fix _lvalue_expression to include pointer indirection #272

Merged
merged 2 commits into from Jan 11, 2023

Conversation

tamasvajk
Copy link
Collaborator

@tamasvajk tamasvajk commented Jan 11, 2023

I missed this case in #269.

@@ -1254,7 +1256,7 @@ module.exports = grammar({
))
)),

element_access_expression: $ => prec.right(PREC.UNARY, seq(
element_access_expression: $ => prec.right(PREC.POSTFIX, seq(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is fixed to not have conflict in *p[i]. The precedence was not matching https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/#operator-precedence.

@tamasvajk tamasvajk marked this pull request as ready for review January 11, 2023 08:39
@tamasvajk tamasvajk merged commit 50b8184 into tree-sitter:master Jan 11, 2023
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