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:
Leonardo de Moura 2021-10-02 11:36:40 -07:00
parent e1f591ba61
commit b7281e9fe2

View file

@ -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)*)