mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Merge remote-tracking branch 'origin/trunk' into parse-expr-defs-soa
This commit is contained in:
commit
8b72782ea2
8 changed files with 210 additions and 102 deletions
|
@ -145,7 +145,10 @@ impl<'a> Formattable for Expr<'a> {
|
|||
}
|
||||
|
||||
let next_indent = if starts_with_newline(sub_expr) || should_add_newlines {
|
||||
indent + INDENT
|
||||
match sub_expr {
|
||||
Expr::Closure(..) | Expr::SpaceAfter(Closure(..), ..) => indent,
|
||||
_ => indent + INDENT,
|
||||
}
|
||||
} else {
|
||||
indent
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue