diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-09-14 13:16:03 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-09-14 13:18:07 -0400 |
| commit | a59e604366b3d36a6f148225ed66f7b07a67cee7 (patch) | |
| tree | cb15d7631aea0674b3197ddd69d6d88e15368ba8 /src | |
| parent | e23480a32c5c9089c3449a379226b6334916a322 (diff) | |
Break with no newline for long partial switch statement
Diffstat (limited to 'src')
| -rw-r--r-- | src/odin/printer/visit.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/odin/printer/visit.odin b/src/odin/printer/visit.odin index 882ba51..734a3a3 100644 --- a/src/odin/printer/visit.odin +++ b/src/odin/printer/visit.odin @@ -1049,7 +1049,7 @@ visit_stmt :: proc( document = enforce_fit_if_do(v.body, document) case ^Switch_Stmt: if v.partial { - document = cons(document, text("#partial"), break_with_space()) + document = cons(document, text("#partial"), break_with_no_newline()) } if v.label != nil { @@ -1093,7 +1093,7 @@ visit_stmt :: proc( } case ^Type_Switch_Stmt: if v.partial { - document = cons(document, text("#partial"), break_with_space()) + document = cons(document, text("#partial"), break_with_no_newline()) } if v.label != nil { |