fix(library/init/lean/parser/token): broken end of comment

This commit is contained in:
Sebastian Ullrich 2018-10-13 11:58:32 -07:00
parent eff43fab08
commit 2df885d9a3

View file

@ -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"