allow eof termination for single line comments (#126)

This commit is contained in:
Kat Marchán 2021-09-02 15:25:13 -07:00 committed by GitHub
parent 2e42c4c0ec
commit 6b4d0ea030
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 := ('*' [^\/] | [^*])*
```