mirror of https://github.com/kdl-org/kdl.git
more node and nodes fixes
This commit is contained in:
parent
42672c1701
commit
dfc1441ec9
4
SPEC.md
4
SPEC.md
|
|
@ -292,9 +292,9 @@ Note that for the purpose of new lines, CRLF is considered _a single newline_.
|
|||
## Full Grammar
|
||||
|
||||
```
|
||||
nodes := linespace* (node nodes?)? linespace*
|
||||
nodes := linespace* node* linespace*
|
||||
|
||||
node := ('/-' ws*)? identifier (node-space node-props-and-args)* (node-terminator | (node-space node-children))
|
||||
node := ('/-' ws*)? identifier (node-space node-props-and-args)* node-space* (node-terminator | node-children)
|
||||
node-props-and-args := ('/-' ws*)? (prop | value)
|
||||
node-children := ('/-' ws*)? '{' nodes '}'
|
||||
node-space := ws* escline ws* | ws+
|
||||
|
|
|
|||
Loading…
Reference in New Issue