Skip to content

Commit

Permalink
Add :has(..) selector to documentation
Browse files Browse the repository at this point in the history
This matches and surfaces `:has(..)` from the [esquery](https://github.com/estools/esquery) documentation.
  • Loading branch information
johnemau committed Nov 11, 2021
1 parent 1055f16 commit 68466f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/developer-guide/selectors.md
Expand Up @@ -43,6 +43,7 @@ The following selectors are supported:
* following sibling: `VariableDeclaration ~ VariableDeclaration`
* adjacent sibling: `ArrayExpression > Literal + SpreadElement`
* negation: `:not(ForStatement)`
* has: `:has(ForStatement)`
* matches-any: `:matches([attr] > :first-child, :last-child)`
* class of AST node: `:statement`, `:expression`, `:declaration`, `:function`, or `:pattern`

Expand Down

0 comments on commit 68466f1

Please sign in to comment.