summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-10-15 17:08:48 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-10-15 17:08:48 -0400
commite0bbb1b7ea5c7bc24763d1863a94ef74f0966ccb (patch)
treea0ecd28f399a4fd08e6a44aa4c134e2f95feea52 /tools
parent9f7ba16c9c9afeb49f2a8b1729141afe5011bc88 (diff)
Format matrix comp lits that use ranges
Diffstat (limited to 'tools')
-rw-r--r--tools/odinfmt/tests/.snapshots/matrix_comp_lit.odin5
-rw-r--r--tools/odinfmt/tests/matrix_comp_lit.odin7
2 files changed, 12 insertions, 0 deletions
diff --git a/tools/odinfmt/tests/.snapshots/matrix_comp_lit.odin b/tools/odinfmt/tests/.snapshots/matrix_comp_lit.odin
new file mode 100644
index 0000000..a90e451
--- /dev/null
+++ b/tools/odinfmt/tests/.snapshots/matrix_comp_lit.odin
@@ -0,0 +1,5 @@
+package odinfmt_test
+
+main :: proc() {
+ foo := #row_major matrix[4, 4]int{4 ..< 8 = 1, 1 ..< 2 = 2}
+}
diff --git a/tools/odinfmt/tests/matrix_comp_lit.odin b/tools/odinfmt/tests/matrix_comp_lit.odin
new file mode 100644
index 0000000..74e71d2
--- /dev/null
+++ b/tools/odinfmt/tests/matrix_comp_lit.odin
@@ -0,0 +1,7 @@
+package odinfmt_test
+
+main :: proc() {
+ foo := #row_major matrix[4,4]int {
+ 4..<8 = 1, 1..<2 = 2,
+ }
+}