diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-09-12 10:07:14 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-09-12 10:07:29 -0400 |
| commit | 4d360675f6c93b5d16aeaa3cb7ef29668afeec9c (patch) | |
| tree | b60429f7ee972bfc4d2e9b69397333a944b4b9cb | |
| parent | 83cb4c059781eebe5bed2899815e416d3b4ff28a (diff) | |
Fix formatting structs with long field definitions
| -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 96890f3..a3e8e83 100644 --- a/src/odin/printer/visit.odin +++ b/src/odin/printer/visit.odin @@ -2094,7 +2094,7 @@ visit_struct_field_list :: proc(p: ^Printer, list: ^ast.Field_List, options := L if len(field.names) != 0 { document = cons(document, text(" :" if p.config.spaces_around_colons else ":"), align) } - document = cons_with_opl(document, visit_expr(p, field.type)) + document = cons_with_nopl(document, visit_expr(p, field.type)) } else { document = cons(document, text(":"), text("=")) document = cons_with_opl(document, visit_expr(p, field.default_value)) |