mirror of https://github.com/kdl-org/kdl.git
kql: only allow top() at start of selector
This commit is contained in:
parent
fa204cec62
commit
b08fc4382a
|
|
@ -110,8 +110,9 @@ what they expand to.
|
||||||
|
|
||||||
```
|
```
|
||||||
query-str := $bom? query
|
query-str := $bom? query
|
||||||
query := selector q-ws* "||" q-ws* query | selector
|
query := selector-start q-ws* "||" q-ws* query | selector-start
|
||||||
selector := filter q-ws* selector-operator q-ws* selector | filter
|
selector-start := filter q-ws* selector-operator q-ws* selector | filter
|
||||||
|
selector := matchers q-ws* selector-operator q-ws* selector | matchers
|
||||||
selector-operator := ">>" | ">" | "++" | "+"
|
selector-operator := ">>" | ">" | "++" | "+"
|
||||||
filter := "top(" q-ws* ")" | matchers
|
filter := "top(" q-ws* ")" | matchers
|
||||||
matchers := type-matcher $string? accessor-matcher* | $string accessor-matcher* | accessor-matcher+
|
matchers := type-matcher $string? accessor-matcher* | $string accessor-matcher* | accessor-matcher+
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue