fix: instruct pretty printer to add a line break after each calc step
It should fix https://github.com/leanprover/mathport/issues/26
This commit is contained in:
parent
e1f591ba61
commit
b7281e9fe2
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ macro:35 xs:bracketedExplicitBinders " ×' " b:term:35 : term => expandBrackedBi
|
|||
|
||||
-- enforce indentation of calc steps so we know when to stop parsing them
|
||||
syntax calcStep := colGe term " := " withPosition(term)
|
||||
syntax (name := calc) "calc " withPosition(calcStep+) : term
|
||||
syntax (name := calc) "calc " withPosition((calcStep ppLine)+) : term
|
||||
|
||||
macro "calc " steps:withPosition(calcStep+) : tactic => `(exact calc $(steps.getArgs)*)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue