Skip to content

Is there a way to match top-level functions? #620

Answered by morgante
kvnxiao asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, this is possible.

This should do the trick:

engine marzano(0.1)
language js

arrow_function() as $match where $match <: not within statement_block()

Replies: 1 comment 1 reply

Comment options

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

Answer selected by kvnxiao
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