esquery
esquery copied to clipboard
Re-implement `:has(>` by marking first selector isRoot
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(>