fix: remove redundant alternatives
This commit is contained in:
parent
30efb589a6
commit
feb71271e9
2 changed files with 1 additions and 4 deletions
|
|
@ -92,11 +92,9 @@ syntax (name := calcTactic) "calc" ppLine withPosition(calcStep) ppLine withPosi
|
|||
|
||||
@[appUnexpander Unit.unit] def unexpandUnit : Lean.PrettyPrinter.Unexpander
|
||||
| `($(_)) => `(())
|
||||
| _ => throw ()
|
||||
|
||||
@[appUnexpander List.nil] def unexpandListNil : Lean.PrettyPrinter.Unexpander
|
||||
| `($(_)) => `([])
|
||||
| _ => throw ()
|
||||
|
||||
@[appUnexpander List.cons] def unexpandListCons : Lean.PrettyPrinter.Unexpander
|
||||
| `($(_) $x []) => `([$x])
|
||||
|
|
|
|||
|
|
@ -112,9 +112,8 @@ private def isSectionVariable (e : Expr) : TermElabM Bool := do
|
|||
for arg in args.raw do
|
||||
match arg with
|
||||
| `(argument| ($_ := $e)) => precheck e
|
||||
| `(argument| $e:term) => precheck e
|
||||
| `(argument| ..) => pure ()
|
||||
| _ => throwUnsupportedSyntax
|
||||
| `(argument| $e:term) => precheck e
|
||||
| _ => throwUnsupportedSyntax
|
||||
|
||||
@[builtinQuotPrecheck Lean.Parser.Term.paren] def precheckParen : Precheck
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue