From 604f3df64fed705dade956a4151677f6e8cbe171 Mon Sep 17 00:00:00 2001 From: Lars Willighagen Date: Sun, 5 Sep 2021 02:46:00 +0200 Subject: [PATCH] Fix multi-line-comment grammar Fix https://github.com/kdl-org/kdl/issues/128 --- SPEC.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SPEC.md b/SPEC.md index cfb65cf..c3ed4f7 100644 --- a/SPEC.md +++ b/SPEC.md @@ -376,6 +376,6 @@ bom := '\u{FFEF}' unicode-space := See Table (All White_Space unicode characters which are not `newline`) single-line-comment := '//' ^newline+ newline -multi-line-comment := '/*' (commented-block | multi-line-comment) '*/' -commented-block := ('*' [^\/] | [^*])* +multi-line-comment := '/*' commented-block +commented-block := '*/' | (multi-line-comment | '*' | '/' | [^*/]+) commented-block ```