mirror of https://github.com/kdl-org/kdl.git
allow EOF right after line continuations
Fixes: https://github.com/kdl-org/kdl/issues/337
This commit is contained in:
parent
e70c7a01e3
commit
46a987e989
|
|
@ -27,6 +27,8 @@
|
||||||
`#""#`.
|
`#""#`.
|
||||||
* `#` is an illegal initial identifier character, but is allowed in other
|
* `#` is an illegal initial identifier character, but is allowed in other
|
||||||
places in identifiers.
|
places in identifiers.
|
||||||
|
* Line continuations can be followed by an EOF now, instead of requiring a
|
||||||
|
newline (or comment). `node \<EOF>` is now a legal KDL document.
|
||||||
|
|
||||||
### KQL
|
### KQL
|
||||||
|
|
||||||
|
|
|
||||||
2
SPEC.md
2
SPEC.md
|
|
@ -546,7 +546,7 @@ binary := sign? '0b' ('0' | '1') ('0' | '1' | '_')*
|
||||||
|
|
||||||
boolean := 'true' | 'false'
|
boolean := 'true' | 'false'
|
||||||
|
|
||||||
escline := '\\' ws* (single-line-comment | newline)
|
escline := '\\' ws* (single-line-comment | newline | eof)
|
||||||
|
|
||||||
newline := See Table (All line-break white_space)
|
newline := See Table (All line-break white_space)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue