diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-10-15 17:08:48 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-10-15 17:08:48 -0400 |
| commit | e0bbb1b7ea5c7bc24763d1863a94ef74f0966ccb (patch) | |
| tree | a0ecd28f399a4fd08e6a44aa4c134e2f95feea52 /tools | |
| parent | 9f7ba16c9c9afeb49f2a8b1729141afe5011bc88 (diff) | |
Format matrix comp lits that use ranges
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/odinfmt/tests/.snapshots/matrix_comp_lit.odin | 5 | ||||
| -rw-r--r-- | tools/odinfmt/tests/matrix_comp_lit.odin | 7 |
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, + } +} |