Skip to content

Commit 81d30ad

Browse files
committed
fix another subtle bug in comment regex
1 parent 48cb50a commit 81d30ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: doc/rust.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ Some productions are defined by exclusion of particular Unicode characters:
155155

156156
~~~~~~~~ {.ebnf .gram}
157157
comment : block_comment | line_comment ;
158-
block_comment : "/*" block_comment_body * "*" + "/" ;
159-
block_comment_body : non_star * | '*' + non_slash ;
158+
block_comment : "/*" block_comment_body * '*' + '/' ;
159+
block_comment_body : non_star * | '*' + non_slash_or_star ;
160160
line_comment : "//" non_eol * ;
161161
~~~~~~~~
162162

0 commit comments

Comments
 (0)