Repository navigation
Need help understanding predicate usage #373
|
Hello, I have the following query (I am working with SystemVerilog) Note the #eq predicate - trying to ONLY return the node that matches "i_my_module". Then I return the list of captures: when I run my script, however, I get a list of ALL the simple_identifier nodes, not just the one node with 'i_my_module'. I am very new to using tree-sitter so help and patience is very appreciated. Thanks in advance! |
Answered by
ObserverOfTime
Jul 10, 2025
Replies: 2 comments
((simple_identifier) @id (#eq? @id "i_my_module")) |
0 replies
Answer selected by
ObserverOfTime
|
@ObserverOfTime - my goodness. I have been struggling for an hour. Stupid LISP!! Appreciate your help! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
((simple_identifier) @id (#eq? @id "i_my_module"))