mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Merge pull request #7536 from joshuawarner32/remove-indented-else
Remove indented-else syntax from the formatter
This commit is contained in:
commit
5b4c8e70d8
8 changed files with 121 additions and 50 deletions
|
@ -778,11 +778,11 @@ impl<'a> Normalize<'a> for Expr<'a> {
|
|||
Expr::If {
|
||||
if_thens,
|
||||
final_else,
|
||||
indented_else,
|
||||
indented_else: _,
|
||||
} => Expr::If {
|
||||
if_thens: if_thens.normalize(arena),
|
||||
final_else: arena.alloc(final_else.normalize(arena)),
|
||||
indented_else,
|
||||
indented_else: false,
|
||||
},
|
||||
Expr::When(a, b) => Expr::When(arena.alloc(a.normalize(arena)), b.normalize(arena)),
|
||||
Expr::ParensAround(a) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue