esquery icon indicating copy to clipboard operation
esquery copied to clipboard

Re-implement `:has(>` by marking first selector isRoot

Open lukaw3d opened this issue 1 year ago • 0 comments

Re-implements https://github.com/estools/esquery/pull/145 to fix https://github.com/estools/esquery/pull/146 :has(>BlockStatement>ExpressionStatement)

but this approach isn't extendable to support :has(~ and I don't know if it has unintended consequences if > is used outside :has(>

lukaw3d avatar Aug 06 '24 18:08 lukaw3d