tree-sitter-rust icon indicating copy to clipboard operation
tree-sitter-rust copied to clipboard

Operators are not being highlighted

Open Avi-D-coder opened this issue 5 years ago • 2 comments

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

Avi-D-coder avatar Jul 15 '20 02:07 Avi-D-coder

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

GrayJack avatar Dec 23 '20 09:12 GrayJack

Maybe it's what's being reported in https://github.com/tree-sitter/tree-sitter-rust/issues/98?

resolritter avatar Jan 07 '21 20:01 resolritter