mirror of https://github.com/kdl-org/kdl.git
Fix multi-line-comment grammar (#130)
Fix https://github.com/kdl-org/kdl/issues/128
This commit is contained in:
parent
dec2565a17
commit
ede621807e
4
SPEC.md
4
SPEC.md
|
|
@ -449,6 +449,6 @@ bom := '\u{FFEF}'
|
|||
unicode-space := See Table (All White_Space unicode characters which are not `newline`)
|
||||
|
||||
single-line-comment := '//' ^newline+ (newline | eof)
|
||||
multi-line-comment := '/*' (commented-block | multi-line-comment) '*/'
|
||||
commented-block := ('*' [^\/] | [^*])*
|
||||
multi-line-comment := '/*' commented-block
|
||||
commented-block := '*/' | (multi-line-comment | '*' | '/' | [^*/]+) commented-block
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue