mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Fix formatting of backpassing in a nested def with no newline
Fixes #4338
This commit is contained in:
parent
fb0668f13b
commit
d876abb04b
5 changed files with 112 additions and 1 deletions
|
@ -420,7 +420,7 @@ pub fn fmt_body<'a, 'buf>(
|
|||
);
|
||||
}
|
||||
}
|
||||
Expr::Defs(..) | Expr::BinOps(_, _) => {
|
||||
Expr::Defs(..) | Expr::BinOps(_, _) | Expr::Backpassing(..) => {
|
||||
// Binop chains always get a newline. Otherwise you can have things like:
|
||||
//
|
||||
// something = foo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue