Fix multi-line-comment grammar

Fix https://github.com/kdl-org/kdl/issues/128
This commit is contained in:
Lars Willighagen 2021-09-05 02:46:00 +02:00
parent 7c54aae64f
commit 604f3df64f
1 changed files with 2 additions and 2 deletions

View File

@ -376,6 +376,6 @@ bom := '\u{FFEF}'
unicode-space := See Table (All White_Space unicode characters which are not `newline`)
single-line-comment := '//' ^newline+ newline
multi-line-comment := '/*' (commented-block | multi-line-comment) '*/'
commented-block := ('*' [^\/] | [^*])*
multi-line-comment := '/*' commented-block
commented-block := '*/' | (multi-line-comment | '*' | '/' | [^*/]+) commented-block
```