mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
fixed indentation for apply args
This commit is contained in:
parent
454933e2c6
commit
21a30b1e83
5 changed files with 56 additions and 38 deletions
|
@ -469,7 +469,13 @@ fn fmt_bin_ops<'a, 'buf>(
|
|||
buf.spaces(1);
|
||||
}
|
||||
|
||||
loc_right_side.format_with_options(buf, apply_needs_parens, Newlines::Yes, indent);
|
||||
let next_indent = if is_multiline {
|
||||
indent + INDENT
|
||||
} else {
|
||||
indent
|
||||
};
|
||||
|
||||
loc_right_side.format_with_options(buf, apply_needs_parens, Newlines::Yes, next_indent);
|
||||
}
|
||||
|
||||
fn empty_line_before_expr<'a>(expr: &'a Expr<'a>) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue