Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ r[comments.syntax]

BLOCK_COMMENT ->
`/*`
( ~[`*` `!`] | `**` | BlockCommentOrDoc )
( BlockCommentOrDoc | ~`*/` )*
( ~[`*` `!`] | `**` | BLOCK_COMMENT_OR_DOC )
( BLOCK_COMMENT_OR_DOC | ~`*/` )*
`*/`
| `/**/`
| `/***/`
Expand All @@ -19,18 +19,18 @@ BLOCK_COMMENT ->
`//!` ~[LF CR]*

INNER_BLOCK_DOC ->
`/*!` ( BlockCommentOrDoc | ~[`*/` CR] )* `*/`
`/*!` ( BLOCK_COMMENT_OR_DOC | ~[`*/` CR] )* `*/`

@root OUTER_LINE_DOC ->
`///` (~`/` ~[LF CR]*)?

OUTER_BLOCK_DOC ->
`/**`
( ~`*` | BlockCommentOrDoc )
( BlockCommentOrDoc | ~[`*/` CR] )*
( ~`*` | BLOCK_COMMENT_OR_DOC )
( BLOCK_COMMENT_OR_DOC | ~[`*/` CR] )*
`*/`

@root BlockCommentOrDoc ->
@root BLOCK_COMMENT_OR_DOC ->
BLOCK_COMMENT
| OUTER_BLOCK_DOC
| INNER_BLOCK_DOC
Expand Down