Closed alekseyt closed 5 years ago
Unfortunately, tree-sitter parses such expressions like varibale->function()
. Without expansion of syntax nodes and looking at what text is actually inside, it's impossible to distinguish keywords in such cases. At the moment i do not plan to implement parsing of node's text because of performance impact. This will imply considerable performance drop, because every term will have to be checked against a list of special words or regexps. Please, look at this answer for details.
Edit: Also, in some sense, this
is indeed variable, the one, that we are inside at the moment.
If it's on tree-siiter then i'm closing this issue then.
this
as inCurrently it's not highlighted. I tried to add it to the end of the list of
control
keywords ingrammar/cpp.json
:but it's still not highlighted. What am i missing?