diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-15 20:32:17 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-15 20:33:02 -0400 |
| commit | 45d640d3f3c8c7970aa3101af6cd12f1fe857cd0 (patch) | |
| tree | 88e498bc2d92a3b434498f5c69d3eef090394671 /tools/odinfmt/tests | |
| parent | 34e3bad043b1a98534863d66233f2e7411c51a6a (diff) | |
Fix issue formatting when statements with allman style braces
Diffstat (limited to 'tools/odinfmt/tests')
| -rw-r--r-- | tools/odinfmt/tests/allman/.snapshots/when.odin | 10 | ||||
| -rw-r--r-- | tools/odinfmt/tests/allman/when.odin | 8 |
2 files changed, 18 insertions, 0 deletions
diff --git a/tools/odinfmt/tests/allman/.snapshots/when.odin b/tools/odinfmt/tests/allman/.snapshots/when.odin new file mode 100644 index 0000000..f34307f --- /dev/null +++ b/tools/odinfmt/tests/allman/.snapshots/when.odin @@ -0,0 +1,10 @@ +package allman + +main :: proc() +{ + TEST_BOOL := false + + when TEST_BOOL + { + } +} diff --git a/tools/odinfmt/tests/allman/when.odin b/tools/odinfmt/tests/allman/when.odin new file mode 100644 index 0000000..5573c53 --- /dev/null +++ b/tools/odinfmt/tests/allman/when.odin @@ -0,0 +1,8 @@ +package allman + +main :: proc() { + TEST_BOOL := false + + when TEST_BOOL { + } +} |