Closed Avi-D-coder closed 1 year ago
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
Maybe it's what's being reported in https://github.com/tree-sitter/tree-sitter-rust/issues/98?
Other tree-sitter grammars parse
->
,&&
,+=
, etc. as an operator. This grammar should be consistent with the standard convention.