mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
fix another subtle bug in comment regex
This commit is contained in:
parent
48cb50af13
commit
81d30ade61
@ -155,8 +155,8 @@ Some productions are defined by exclusion of particular Unicode characters:
|
||||
|
||||
~~~~~~~~ {.ebnf .gram}
|
||||
comment : block_comment | line_comment ;
|
||||
block_comment : "/*" block_comment_body * "*" + "/" ;
|
||||
block_comment_body : non_star * | '*' + non_slash ;
|
||||
block_comment : "/*" block_comment_body * '*' + '/' ;
|
||||
block_comment_body : non_star * | '*' + non_slash_or_star ;
|
||||
line_comment : "//" non_eol * ;
|
||||
~~~~~~~~
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user