Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow EOF right after line continuations (#356)
Browse files Browse the repository at this point in the history
Fixes: #337
zkat authored Dec 13, 2023

Verified

This commit was signed with the committer’s verified signature.
axelboc Axel Bocciarelli
1 parent e70c7a0 commit 725734a
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -27,6 +27,8 @@
`#""#`.
* `#` is an illegal initial identifier character, but is allowed in other
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

2 changes: 1 addition & 1 deletion SPEC.md
Original file line number Diff line number Diff line change
@@ -546,7 +546,7 @@ binary := sign? '0b' ('0' | '1') ('0' | '1' | '_')*
boolean := 'true' | 'false'
escline := '\\' ws* (single-line-comment | newline)
escline := '\\' ws* (single-line-comment | newline | eof)
newline := See Table (All line-break white_space)

0 comments on commit 725734a

Please sign in to comment.