Closed Roguebantha closed 2 years ago
Thanks for the bug report and sorry for the slow response.
This looks like an issue in the underlying tree-sitter grammar (see https://github.com/tree-sitter/tree-sitter-c/issues/51). I have an idea for a fix, I'll keep you posted.
This should now be fixed in master. Thanks again for the report :)
In the circumstance that a query containing a subexpression is surrounded by two adjacent expressions, it appears that any sizeof subexpression matches get dropped. For example, for the following code:
The following behavior is observed:
It's this final query that appears to return incorrect results. I would have expected the sizeof function to have been included in the query results, but it is not. It is only included if there are less than 2 adjacent expressions in the query itself.