Skip to content

Commit 81e1531

Browse files
committed
Support descendant with wildcarded index
1 parent 156e2e6 commit 81e1531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/grammar.pest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ sliceEnd = @{ integer }
2828
sliceStep = @{ integer }
2929

3030
descendant = ${ ".." ~ descendantVariant }
31-
descendantVariant = _{ childName | wildcard | "[" ~ unionElement ~ "]" }
31+
descendantVariant = _{ childName | wildcard | "[" ~ wildcard ~ "]" | "[" ~ unionElement ~ "]" }
3232
wildcard = { "*" }
3333

3434
doubleQuotedString = _{ "\"" ~ doubleInner ~ "\"" }

0 commit comments

Comments
 (0)