diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2023-06-25 15:56:43 +0200 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2023-06-25 15:56:43 +0200 |
| commit | 065a0d88b405b043e73a5649cdc56d1317cf1f2f (patch) | |
| tree | 65c8cece98da0dc94f1e73772d71a891180a9792 /tools | |
| parent | d4574616e26477ef67d347113a218b16567086c3 (diff) | |
Fix issue with chainings `do` would increase indentation in a block
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/odinfmt/tests/.snapshots/for.odin | 8 | ||||
| -rw-r--r-- | tools/odinfmt/tests/for.odin | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tools/odinfmt/tests/.snapshots/for.odin b/tools/odinfmt/tests/.snapshots/for.odin new file mode 100644 index 0000000..6d2ddce --- /dev/null +++ b/tools/odinfmt/tests/.snapshots/for.odin @@ -0,0 +1,8 @@ +package odinfmt_test + +a :: proc() { + bag: bit_set[0 ..< 10] = {5} + for x in 0 ..< 10 do if x in bag { + fmt.println(x) + } +} diff --git a/tools/odinfmt/tests/for.odin b/tools/odinfmt/tests/for.odin new file mode 100644 index 0000000..e4168eb --- /dev/null +++ b/tools/odinfmt/tests/for.odin @@ -0,0 +1,8 @@ +package odinfmt_test + +a :: proc() { + bag: bit_set[0 ..< 10] = {5} + for x in 0 ..< 10 do if x in bag { + fmt.println(x) + } +} |