mirror of https://github.com/kdl-org/kdl.git
Allow "empty" single line comments in the spec
As I read the grammar in the spec, `"//"` wouldn't parse as a single-line-comment as it requires as least one non-newline character after the slashes.
This commit is contained in:
parent
2d5e543bbe
commit
3e6f8afe03
2
SPEC.md
2
SPEC.md
|
|
@ -493,7 +493,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