mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Fix pnc args multiine in the presence of final comments
This commit is contained in:
parent
158691fb27
commit
0438c17503
5 changed files with 40 additions and 5 deletions
|
@ -521,10 +521,7 @@ pub fn expr_is_multiline(me: &Expr<'_>, comments_only: bool) -> bool {
|
|||
.any(|loc_arg| expr_is_multiline(&loc_arg.value, comments_only))
|
||||
}
|
||||
Expr::PncApply(loc_expr, args) => {
|
||||
expr_is_multiline(&loc_expr.value, comments_only)
|
||||
|| args
|
||||
.iter()
|
||||
.any(|loc_arg| expr_is_multiline(&loc_arg.value, comments_only))
|
||||
expr_is_multiline(&loc_expr.value, comments_only) || is_collection_multiline(args)
|
||||
}
|
||||
|
||||
Expr::DbgStmt { .. } => true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue