Queries: is it possible to match any number of tree levels? #336
Unanswered
przepompownia
asked this question in
Q&A
Replies: 1 comment 1 reply
-
No. That's not possible at the moment. You could use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Inspiration: how to match a call expression that consist of the chain of methods, but with the cursor at the start of such expression?
Example from PHP
and its part of the tree that needs matching
I have read the basics from https://tree-sitter.github.io/tree-sitter/using-parsers#query-syntax but not found any syntax to express it. I managed to match only concrete number of levels with e.g.
Beta Was this translation helpful? Give feedback.
All reactions