Allow "empty" single line comments in the spec

As I read the grammar in the spec, `"//"` wouldn't parse as a single-line-comment as it requires as least one non-newline character after the slashes.
This commit is contained in:
Basile Henry 2021-10-11 22:14:24 +02:00 committed by Kat Marchán
parent 2d5e543bbe
commit 3e6f8afe03
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
1 changed files with 1 additions and 1 deletions

View File

@ -493,7 +493,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
```