feat: formatter: interpret checkWsBefore as soft space
This commit is contained in:
parent
95007171a8
commit
519eda2459
2 changed files with 7 additions and 5 deletions
|
|
@ -375,7 +375,7 @@ p
|
|||
|
||||
@[combinatorFormatter checkWsBefore] def checkWsBefore.formatter : Formatter := do
|
||||
modify fun st => { st with leadWord := "" };
|
||||
push " "
|
||||
pushLine
|
||||
|
||||
@[combinatorFormatter checkPrec] def checkPrec.formatter : Formatter := pure ()
|
||||
@[combinatorFormatter checkStackTop] def checkStackTop.formatter : Formatter := pure ()
|
||||
|
|
|
|||
|
|
@ -20,7 +20,9 @@ fun
|
|||
(b : Bool) =>
|
||||
a
|
||||
fun {a b : Nat} => a
|
||||
typeAs ({α : Type} → α → α) fun
|
||||
typeAs
|
||||
({α : Type} → α → α)
|
||||
fun
|
||||
{α : Type}
|
||||
(a : α) =>
|
||||
a
|
||||
|
|
@ -52,6 +54,6 @@ Type → Type → Type
|
|||
(1, 2, 3)
|
||||
(1, 2).fst
|
||||
1 < 2 || true
|
||||
id (fun
|
||||
(a : Nat) =>
|
||||
a) 0
|
||||
id
|
||||
(fun (a : Nat) => a)
|
||||
0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue