mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Address PR comments, add syntax tests
This commit is contained in:
parent
b3e60f9d3a
commit
7518a2c5ab
28 changed files with 772 additions and 34 deletions
|
@ -1085,7 +1085,13 @@ fn fmt_return<'a>(
|
|||
|
||||
buf.spaces(1);
|
||||
|
||||
return_value.format(buf, indent);
|
||||
let return_indent = if return_value.is_multiline() {
|
||||
indent + INDENT
|
||||
} else {
|
||||
indent
|
||||
};
|
||||
|
||||
return_value.format(buf, return_indent);
|
||||
|
||||
if let Some(after_return) = after_return {
|
||||
after_return.format_with_options(buf, parens, newlines, indent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue