diff options
| author | henbr <henrik.brandt@protonmail.com> | 2025-01-19 19:21:38 +0100 |
|---|---|---|
| committer | henbr <henrik.brandt@protonmail.com> | 2025-01-19 19:21:38 +0100 |
| commit | 79b83b2bd90c69acaf13110c2cd6ab76b47c9cba (patch) | |
| tree | 3a264092cda59be1ebd6186043c6e0dde7601307 /src | |
| parent | d22499ba966d2c2c8bb0cd4aee8ced52b986ed74 (diff) | |
Fix extra new lines after switch with allman brace style
Diffstat (limited to 'src')
| -rw-r--r-- | src/odin/printer/visit.odin | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/odin/printer/visit.odin b/src/odin/printer/visit.odin index e135825..0911496 100644 --- a/src/odin/printer/visit.odin +++ b/src/odin/printer/visit.odin @@ -1042,7 +1042,9 @@ visit_stmt :: proc( } document = cons_with_opl(document, visit_expr(p, v.cond)) + set_source_position(p, v.body.pos) document = cons_with_nopl(document, visit_stmt(p, v.body, .Switch_Stmt)) + set_source_position(p, v.body.end) case ^Case_Clause: document = cons(document, text("case")) |