From f4ac3b0e7072fbd3c14e9c64ff0c2c255a4eb730 Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Fri, 12 Feb 2021 22:26:35 +0100 Subject: [PATCH] Docs: fix sibling selector descriptions (#14099) --- docs/developer-guide/selectors.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/developer-guide/selectors.md b/docs/developer-guide/selectors.md index ac1ae0d3f42..afe6600dc8c 100644 --- a/docs/developer-guide/selectors.md +++ b/docs/developer-guide/selectors.md @@ -40,8 +40,8 @@ The following selectors are supported: * nth-last-child (no ax+b support): `:nth-last-child(1)` * descendant: `FunctionExpression ReturnStatement` * child: `UnaryExpression > Literal` -* following sibling: `ArrayExpression > Literal + SpreadElement` -* adjacent sibling: `VariableDeclaration ~ VariableDeclaration` +* following sibling: `VariableDeclaration ~ VariableDeclaration` +* adjacent sibling: `ArrayExpression > Literal + SpreadElement` * negation: `:not(ForStatement)` * matches-any: `:matches([attr] > :first-child, :last-child)` * class of AST node: `:statement`, `:expression`, `:declaration`, `:function`, or `:pattern`