Fix multi-line-comment grammar (#130)

Fix https://github.com/kdl-org/kdl/issues/128
This commit is contained in:
Lars Willighagen 2021-09-05 12:12:35 +02:00 committed by GitHub
parent dec2565a17
commit ede621807e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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
```