From e0bbb1b7ea5c7bc24763d1863a94ef74f0966ccb Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Wed, 15 Oct 2025 17:08:48 -0400 Subject: Format matrix comp lits that use ranges --- tools/odinfmt/tests/.snapshots/matrix_comp_lit.odin | 5 +++++ tools/odinfmt/tests/matrix_comp_lit.odin | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 tools/odinfmt/tests/.snapshots/matrix_comp_lit.odin create mode 100644 tools/odinfmt/tests/matrix_comp_lit.odin (limited to 'tools') 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, + } +} -- cgit v1.2.3