Skip to content

How do I match multiple lines of code? #690

Discussion options

You must be logged in to vote

Hi, thanks for giving ast-grep a try.

It is not possible to match two nodes at one time now.

Alternatively, you can try relational rule https://ast-grep.github.io/guide/rule-config/relational-rule.html

Replies: 1 comment 1 reply

Comment options

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

Answer selected by raffomania
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants