mirror of https://github.com/kdl-org/kdl.git
Allow escline everywhere
This commit is contained in:
parent
813a44b6f8
commit
94b525a1da
4
SPEC.md
4
SPEC.md
|
|
@ -906,14 +906,14 @@ unicode-space := See Table (All White_Space unicode characters which are not `ne
|
|||
single-line-comment := '//' ^newline* (newline | eof)
|
||||
multi-line-comment := '/*' commented-block
|
||||
commented-block := '*/' | (multi-line-comment | '*' | '/' | [^*/]+) commented-block
|
||||
slashdash := '/-' (node-space | line-space)*
|
||||
slashdash := '/-' line-space*
|
||||
|
||||
// Whitespace
|
||||
ws := unicode-space | multi-line-comment
|
||||
escline := '\\' ws* (single-line-comment | newline | eof)
|
||||
newline := See Table (All Newline White_Space)
|
||||
// Whitespace where newlines are allowed.
|
||||
line-space := newline | ws | single-line-comment
|
||||
line-space := node-space | newline | single-line-comment
|
||||
// Whitespace within nodes, where newline-ish things must be esclined.
|
||||
node-space := ws* escline ws* | ws+
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue