allow eof termination for single line comments

Ref: https://github.com/kdl-org/kdl/issues/121
This commit is contained in:
Kat Marchán 2021-09-02 15:24:45 -07:00
parent 2e42c4c0ec
commit bbe7bd9057
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
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 := ('*' [^\/] | [^*])*
```