Query to match arbitrary-depth descendant? #1817
-
In shell globbing, I can write this to match all files named "bar" that live at arbitrary depth within "foo": Is something similar possible in treesitter? The below pattern will only match if
Is there any way to modify this query to make it match |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This isn't possible right now, but I'd love to add some feature to make it possible at some point. |
Beta Was this translation helpful? Give feedback.
-
There is an open issue for this feature: #880 |
Beta Was this translation helpful? Give feedback.
This isn't possible right now, but I'd love to add some feature to make it possible at some point.