Revert "Allow single-line comments with nothing after them. Fixes #318"

This reverts commit 652590fad3.
This commit is contained in:
Tab Atkins-Bittner 2023-10-06 14:07:29 -07:00
parent 54f5fc8025
commit 270c60ca9a
1 changed files with 1 additions and 1 deletions

View File

@ -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
```