Match on all node types except for [line_comment, block_comment] #2668
Unanswered
amircohere
asked this question in
Q&A
Replies: 1 comment
-
Solved it for now by doing:
and removing any matches where the first node is a line_comment or block_comment |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this query:
But for obvious reasons, this code:
Evaluates to 3 different captures, one starting at every comment (example starting at the bottom).
I want to modify this to only capture this:
So that it must be proceeded by a non-comment which would solve this problem (that I see other's having as well) although I can't find the syntax for this. I've tried a few of the obvious solutions (NOT, !, etc.).
Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions