aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-15 20:32:17 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-15 20:33:02 -0400
commit45d640d3f3c8c7970aa3101af6cd12f1fe857cd0 (patch)
tree88e498bc2d92a3b434498f5c69d3eef090394671 /tools
parent34e3bad043b1a98534863d66233f2e7411c51a6a (diff)
Fix issue formatting when statements with allman style braces
Diffstat (limited to 'tools')
-rw-r--r--tools/odinfmt/tests/allman/.snapshots/when.odin10
-rw-r--r--tools/odinfmt/tests/allman/when.odin8
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 {
+ }
+}