diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2021-12-07 22:20:52 +0100 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2021-12-07 22:20:52 +0100 |
| commit | 51584cd7722283f2249f38ea472c46710caa136e (patch) | |
| tree | 2a2e8c0365d9dae558baa3588037237cf032811a /src | |
| parent | 5752f6784facaedfcc9a308518e939bfd16a99be (diff) | |
Forgot to trailing comma on break.
Diffstat (limited to 'src')
| -rw-r--r-- | src/odin/printer/visit.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odin/printer/visit.odin b/src/odin/printer/visit.odin index 49527ba..40c4225 100644 --- a/src/odin/printer/visit.odin +++ b/src/odin/printer/visit.odin @@ -1088,7 +1088,7 @@ visit_expr :: proc(p: ^Printer, expr: ^ast.Expr, called_from: Expr_Called_Type = } else { document = cons(document, text("{")) document = cons(document, nest(p.indentation_count, cons(break_with(""), visit_exprs(p, v.elems, {.Add_Comma})))) - document = cons(document, cons(break_with(""), text("}"))) + document = cons(document, cons(cons(if_break(","), break_with("")), text("}"))) document = group(document) } |