mirror of https://github.com/kdl-org/kdl.git
Allow single-line comments with nothing after them. Fixes #318
This commit is contained in:
parent
6fa99c2586
commit
652590fad3
2
SPEC.md
2
SPEC.md
|
|
@ -510,7 +510,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
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue