mirror of https://github.com/kdl-org/kdl.git
allow /- at the very beginning of a document
This commit is contained in:
parent
921211782f
commit
631ec14059
2
SPEC.md
2
SPEC.md
|
|
@ -706,7 +706,7 @@ language syntax](#grammar-language) is defined below.
|
|||
```
|
||||
document := bom? nodes
|
||||
|
||||
nodes := (line-space* node)* line-space*
|
||||
nodes := ('/-' plain-node-space* node)? (line-space* node)* line-space*
|
||||
|
||||
plain-line-space := newline | ws | single-line-comment
|
||||
plain-node-space := ws* escline ws* | ws+
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
another-node
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
/-node here
|
||||
another-node
|
||||
Loading…
Reference in New Issue