mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
feat(formatter): allow single-line function call ending with multi-line lambda
This commit is contained in:
parent
4cff72eccc
commit
477ed3c5e8
2 changed files with 13 additions and 1 deletions
|
@ -206,7 +206,7 @@ impl<'a> Formattable for Expr<'a> {
|
|||
}
|
||||
_ => false,
|
||||
},
|
||||
Record { .. } | List { .. } => {
|
||||
Record { .. } | List { .. } | Closure { .. } => {
|
||||
!found_multiline_expr && loc_arg.is_multiline()
|
||||
}
|
||||
_ => false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue