Closed alekseyt closed 5 years ago
You mean highlight local variables and members differently? Right?
Simply putting yes, i mean parts after '->' and '.' that highlighted in blue on screenshot. This indicates that it's a member variable. Original object being accessed is colored differently indeed.
There are several reasons.
b_ptr
is in turn member. Then it's not obvious how to highlight it, like a member, or like a local variable. Being just syntax parser, tree-sitter cannot distinguish them.b_ptr
differently? Maybe it's better to give preference to w
, as the last property in the chain.OK, thanks, i'm closing this issue then.
This is a question.
Is member access highlighting something tree-sitter can do? Like this:
Note that
z
,y
,x
andw
are highlighted in blue.Example code: