mirror of https://github.com/kdl-org/kdl.git
allow eof termination for single line comments
Ref: https://github.com/kdl-org/kdl/issues/121
This commit is contained in:
parent
2e42c4c0ec
commit
bbe7bd9057
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`)
|
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) '*/'
|
multi-line-comment := '/*' (commented-block | multi-line-comment) '*/'
|
||||||
commented-block := ('*' [^\/] | [^*])*
|
commented-block := ('*' [^\/] | [^*])*
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue