From bbe7bd9057ba41fc0be21101acb6bafc94480eca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Thu, 2 Sep 2021 15:24:45 -0700 Subject: [PATCH] allow eof termination for single line comments Ref: https://github.com/kdl-org/kdl/issues/121 --- SPEC.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPEC.md b/SPEC.md index dc99682..3d342f5 100644 --- a/SPEC.md +++ b/SPEC.md @@ -448,7 +448,7 @@ bom := '\u{FFEF}' unicode-space := See Table (All White_Space unicode characters which are not `newline`) -single-line-comment := '//' ^newline+ newline +single-line-comment := '//' ^newline+ (newline | eof) multi-line-comment := '/*' (commented-block | multi-line-comment) '*/' commented-block := ('*' [^\/] | [^*])* ```