diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-07-20 14:02:43 +0200 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-07-20 14:02:43 +0200 |
| commit | 9087a6e0ec7c2dfe2fe7b8bd9dfde8817afbd16d (patch) | |
| tree | 4ad3f17f78e65a2737eeaa152b74624ed6cbf431 /tools | |
| parent | 77e6e2804dcbcb5fe1935682199062c0adac758e (diff) | |
Add better handling of ternary expressions
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/odinfmt/tests/.snapshots/binary_expressions.odin | 3 | ||||
| -rw-r--r-- | tools/odinfmt/tests/binary_expressions.odin | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/odinfmt/tests/.snapshots/binary_expressions.odin b/tools/odinfmt/tests/.snapshots/binary_expressions.odin index e92dea5..94f381f 100644 --- a/tools/odinfmt/tests/.snapshots/binary_expressions.odin +++ b/tools/odinfmt/tests/.snapshots/binary_expressions.odin @@ -60,5 +60,6 @@ binary :: proc() { ) + 11111111111111111111111111111111111111 - + incidentFace = + (((incidentFace + 1) < incData.vertexCount) ? (incidentFace + 1) : 0) } diff --git a/tools/odinfmt/tests/binary_expressions.odin b/tools/odinfmt/tests/binary_expressions.odin index fed88ca..1c5b910 100644 --- a/tools/odinfmt/tests/binary_expressions.odin +++ b/tools/odinfmt/tests/binary_expressions.odin @@ -31,6 +31,5 @@ binary :: proc() { b = my_cool_function(aaaaaaaaaaaa, bbbbbbbbbbbbbbbbbbbbb, ccccccccccccccccccc) + 11111111111111111111111111111111111111 - - + incidentFace = (((incidentFace + 1) < incData.vertexCount) ? (incidentFace + 1) : 0) } |