Skip to content

Operators are not being highlighted #87

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

Closed
Avi-D-coder opened this issue Jul 15, 2020 · 2 comments
Closed

Operators are not being highlighted #87

Avi-D-coder opened this issue Jul 15, 2020 · 2 comments

Comments

@Avi-D-coder
Copy link

Other tree-sitter grammars parse ->, &&, +=, etc. as an operator.
This grammar should be consistent with the standard convention.

@GrayJack
Copy link
Contributor

GrayJack commented Dec 23, 2020

Pretty sure && and += are in the operator logic, they all show up in the operator field in the s-expr tree.

Now, -> is not a operator by the official Rust syntax, and in this grammar it is not in a field, but I think it's possible to match a string in the queries. So, maybe is the highlight query that needs a update? I'm not sure because I just started to learn about the queries and how they work

@resolritter
Copy link
Contributor

Maybe it's what's being reported in #98?

@amaanq amaanq closed this as not planned Won't fix, can't repro, duplicate, stale Aug 18, 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

No branches or pull requests

4 participants