From 270c60ca9a3d05454b630dc3d8d6fbd6812efd10 Mon Sep 17 00:00:00 2001 From: Tab Atkins-Bittner Date: Fri, 6 Oct 2023 14:07:29 -0700 Subject: [PATCH] Revert "Allow single-line comments with nothing after them. Fixes #318" This reverts commit 652590fad3d842883e971d030a152720ef592a92. --- SPEC.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPEC.md b/SPEC.md index 4b28932..aa75d85 100644 --- a/SPEC.md +++ b/SPEC.md @@ -510,7 +510,7 @@ bom := '\u{FEFF}' unicode-space := See Table (All White_Space unicode characters which are not `newline`) -single-line-comment := '//' ^newline* (newline | eof) +single-line-comment := '//' ^newline+ (newline | eof) multi-line-comment := '/*' commented-block commented-block := '*/' | (multi-line-comment | '*' | '/' | [^*/]+) commented-block ```