mirror of https://github.com/kdl-org/kdl.git
Revert "Allow single-line comments with nothing after them. Fixes #318"
This reverts commit 652590fad3.
This commit is contained in:
parent
54f5fc8025
commit
270c60ca9a
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`)
|
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
|
multi-line-comment := '/*' commented-block
|
||||||
commented-block := '*/' | (multi-line-comment | '*' | '/' | [^*/]+) commented-block
|
commented-block := '*/' | (multi-line-comment | '*' | '/' | [^*/]+) commented-block
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue