fix: checkWsBefore.formatter

This commit is contained in:
Sebastian Ullrich 2020-10-06 17:11:50 +02:00
parent 064c9b2e0b
commit f0dad079ad
2 changed files with 4 additions and 2 deletions

View file

@ -382,7 +382,9 @@ def toggleInsideQuot.formatter (p : Formatter) : Formatter :=
p
@[combinatorFormatter checkWsBefore] def checkWsBefore.formatter : Formatter := do
pushLine
st ← get;
when (st.leadWord != "") $
pushLine
@[combinatorFormatter checkPrec] def checkPrec.formatter : Formatter := pure ()
@[combinatorFormatter checkStackTop] def checkStackTop.formatter : Formatter := pure ()

View file

@ -10,7 +10,7 @@ precissues.lean:17:10: error: expected command, but found term; this error may b
1 : Nat
id ((fun (this : True) => this) True.intro) : True
0 = (fun (this : Nat) => this) 1 : Prop
0 = let x : Nat := 0;
0 = let x : Nat := 0;
x : Prop
p ↔ ¬q : Prop
True = ¬False : Prop