mirror of https://github.com/kdl-org/kdl.git
allow /- to cross linespaces
Ref: https://github.com/kdl-org/kdl/issues/121
This commit is contained in:
parent
6b4d0ea030
commit
ab7c9f356e
6
SPEC.md
6
SPEC.md
|
|
@ -399,9 +399,9 @@ Note that for the purpose of new lines, CRLF is considered _a single newline_.
|
||||||
```
|
```
|
||||||
nodes := linespace* (node nodes?)? linespace*
|
nodes := linespace* (node nodes?)? linespace*
|
||||||
|
|
||||||
node := ('/-' ws*)? identifier (node-space node-space* node-props-and-args)* (node-space* node-children ws*)? node-space* node-terminator
|
node := ('/-' node-space*)? identifier (node-space node-space* node-props-and-args)* (node-space* node-children ws*)? node-space* node-terminator
|
||||||
node-props-and-args := ('/-' ws*)? (prop | value)
|
node-props-and-args := ('/-' node-space*)? (prop | value)
|
||||||
node-children := ('/-' ws*)? '{' nodes '}'
|
node-children := ('/-' node-space*)? '{' nodes '}'
|
||||||
node-space := ws* escline ws* | ws+
|
node-space := ws* escline ws* | ws+
|
||||||
node-terminator := single-line-comment | newline | ';' | eof
|
node-terminator := single-line-comment | newline | ';' | eof
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue