mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
add tag union tests for trailing commas formatting
This commit is contained in:
parent
7692bd5671
commit
965d151168
2 changed files with 48 additions and 16 deletions
|
@ -415,7 +415,7 @@ pub fn fmt_list<'a>(
|
|||
for item in loc_items.iter() {
|
||||
match &item.value {
|
||||
// TODO?? These SpaceAfter/SpaceBefore litany seems overcomplicated
|
||||
// Can we simplify this?
|
||||
// Can we simplify this? Or at least move this in a separate function.
|
||||
Expr::SpaceBefore(expr_below, spaces_above_expr) => {
|
||||
newline(buf, item_indent);
|
||||
fmt_comments_only(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue