Skip to content

Commit c49c560

Browse files
committed
Remove unreachable alternative in OUTER_BLOCK_DOC
The only way to match the `NESTED_BLOCK_DOC_COMMENT` rule is for the string to start with `/`, but we've already ruled that out with a negative lookahead, making this alternative dead. Let's remove it.
1 parent 6cdb81d commit c49c560

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/comments.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ OUTER_LINE_DOC ->
3535
OUTER_BLOCK_DOC ->
3636
`/**` ![`*` `/`]
3737
^
38-
( ~[`*` CR] | NESTED_BLOCK_DOC_COMMENT )
38+
~[`*` CR]
3939
( NESTED_BLOCK_DOC_COMMENT | DOC_BLOCK_CHAR )*
4040
`*/`
4141

0 commit comments

Comments
 (0)