mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Make sure unary operators around function calls get parens
This commit is contained in:
parent
0a58d6e60e
commit
e9d22699ed
2 changed files with 20 additions and 1 deletions
|
@ -258,7 +258,7 @@ impl<'a> Formattable<'a> for Expr<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
sub_expr.format_with_options(buf, parens, newlines, indent);
|
||||
sub_expr.format_with_options(buf, Parens::InApply, newlines, indent);
|
||||
}
|
||||
AccessorFunction(key) => {
|
||||
buf.push('.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue