mirror of https://github.com/kdl-org/kdl.git
allow eof termination for single line comments (#126)
This commit is contained in:
parent
2e42c4c0ec
commit
6b4d0ea030
2
SPEC.md
2
SPEC.md
|
|
@ -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 := ('*' [^\/] | [^*])*
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue