From 725734a148610e31fa90f2464d24897a92d9ce6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Tue, 12 Dec 2023 20:21:40 -0800 Subject: [PATCH] allow EOF right after line continuations (#356) Fixes: https://github.com/kdl-org/kdl/issues/337 --- CHANGELOG.md | 2 ++ SPEC.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d705aff..7cb5709 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 \` is now a legal KDL document. ### KQL diff --git a/SPEC.md b/SPEC.md index 578c47b..22b6488 100644 --- a/SPEC.md +++ b/SPEC.md @@ -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)