mirror of https://github.com/kdl-org/kdl.git
[editorial] tweak node-props-and-args grammar (#240)
* replaces a `foo foo*` with a `foo+` * switches the name of the production to singular, since it only represents one prop/arg at a time No normative changes intended.
This commit is contained in:
parent
617ab86e5e
commit
a1d85e9fe1
4
SPEC.md
4
SPEC.md
|
|
@ -420,8 +420,8 @@ Note that for the purpose of new lines, CRLF is considered _a single newline_.
|
|||
```
|
||||
nodes := linespace* (node nodes?)? linespace*
|
||||
|
||||
node := ('/-' node-space*)? type? identifier (node-space node-space* node-props-and-args)* (node-space* node-children ws*)? node-space* node-terminator
|
||||
node-props-and-args := ('/-' node-space*)? (prop | value)
|
||||
node := ('/-' node-space*)? type? identifier (node-space+ node-prop-or-arg)* (node-space* node-children ws*)? node-space* node-terminator
|
||||
node-prop-or-arg := ('/-' node-space*)? (prop | value)
|
||||
node-children := ('/-' node-space*)? '{' nodes '}'
|
||||
node-space := ws* escline ws* | ws+
|
||||
node-terminator := single-line-comment | newline | ';' | eof
|
||||
|
|
|
|||
Loading…
Reference in New Issue