diff options
| author | Bradley Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-18 09:49:21 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-18 09:49:21 -0400 |
| commit | 2ba84dcc4e19a1b66e3c270b7391cc8ae92e97b4 (patch) | |
| tree | a9a308cc5ced0bd5b7a5a69316184adf67966946 /src | |
| parent | 42b404f3c0f66c089a13e7bed5d0bbc05f7f3bf6 (diff) | |
| parent | cff8506a90984086d4a3455396d38f996b17ab73 (diff) | |
Merge pull request #904 from BradLewis/fix/switch-cond-strip-semicolon
Fix issue with odinfmt stripping the semicolon after a switch init with no condition
Diffstat (limited to 'src')
| -rw-r--r-- | src/odin/printer/visit.odin | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/odin/printer/visit.odin b/src/odin/printer/visit.odin index e3a7e96..1adc276 100644 --- a/src/odin/printer/visit.odin +++ b/src/odin/printer/visit.odin @@ -1054,9 +1054,6 @@ visit_stmt :: proc( if v.init != nil { document = cons_with_opl(document, visit_stmt(p, v.init)) - } - - if v.init != nil && v.cond != nil { document = cons(document, text(";")) } |