From ede621807eb2b36dec53794951523317aebba599 Mon Sep 17 00:00:00 2001 From: Lars Willighagen Date: Sun, 5 Sep 2021 12:12:35 +0200 Subject: [PATCH] Fix multi-line-comment grammar (#130) 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 425d531..25e71bd 100644 --- a/SPEC.md +++ b/SPEC.md @@ -449,6 +449,6 @@ bom := '\u{FFEF}' unicode-space := See Table (All White_Space unicode characters which are not `newline`) single-line-comment := '//' ^newline+ (newline | eof) -multi-line-comment := '/*' (commented-block | multi-line-comment) '*/' -commented-block := ('*' [^\/] | [^*])* +multi-line-comment := '/*' commented-block +commented-block := '*/' | (multi-line-comment | '*' | '/' | [^*/]+) commented-block ```