fix: allow {} as conv

This commit is contained in:
Mario Carneiro 2022-08-01 10:42:24 -04:00 committed by Leonardo de Moura
parent 25aea1b723
commit 5ed3e580ef

View file

@ -13,7 +13,7 @@ namespace Lean.Parser.Tactic.Conv
declare_syntax_cat conv (behavior := both)
syntax convSeq1Indented := withPosition((colGe conv ";"?)+)
syntax convSeqBracketed := "{" (conv ";"?)+ "}"
syntax convSeqBracketed := "{" (conv ";"?)* "}"
-- Order is important: a missing `conv` proof should not be parsed as `{ <missing> }`,
-- automatically closing goals
syntax convSeq := convSeqBracketed <|> convSeq1Indented