Skip to content
Discussion options

You must be logged in to vote

I think your current method is OK, but the way I would handle this is to just use your second rule and then directly check the matched nodes in code to see if they have dependents or not using Token.children.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ricardojosehlima
Comment options

Answer selected by polm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / matcher Feature: Token, phrase and dependency matcher
2 participants