fix(library/init/lean/parser/token): broken end of comment
This commit is contained in:
parent
eff43fab08
commit
2df885d9a3
1 changed files with 1 additions and 3 deletions
|
|
@ -28,9 +28,7 @@ private def finish_comment_block_aux : nat → nat → basic_parser_m unit
|
|||
| nesting (n+1) :=
|
||||
str "/-" *> finish_comment_block_aux (nesting + 1) n
|
||||
<|>
|
||||
str "-/" *>
|
||||
if nesting = 1 then pure ()
|
||||
else finish_comment_block_aux (nesting - 1) n
|
||||
str "-/" *> (if nesting = 1 then pure () else finish_comment_block_aux (nesting - 1) n)
|
||||
<|>
|
||||
any *> finish_comment_block_aux nesting n
|
||||
| _ _ := error "unreachable"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue