fix: allow empty sequence at seq
This commit is contained in:
parent
4fe0104b52
commit
cc2f84aa5d
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ def ident' : Parser := ident <|> underscore
|
|||
/-
|
||||
We must not use the `parser! t` macro here it because it expands into `mkAntiquot ... <|> t`,
|
||||
but a tactic parser may start with an antiquotation. -/
|
||||
def seq : Parser := node `Lean.Parser.Tactic.seq $ sepBy1 tacticParser "; " true
|
||||
def seq : Parser := node `Lean.Parser.Tactic.seq $ sepBy tacticParser "; " true
|
||||
def nonEmptySeq : Parser := node `Lean.Parser.Tactic.seq $ sepBy1 tacticParser "; " true
|
||||
|
||||
@[builtinTacticParser] def «intro» := parser! nonReservedSymbol "intro " >> optional ident'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue