From 46a987e989e67fbf3fb30180f9c62741adcfca44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Mon, 11 Dec 2023 08:25:33 -0800 Subject: [PATCH] allow EOF right after line continuations 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)