aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin5@hotmail.com>2022-07-20 14:02:43 +0200
committerDaniel Gavin <danielgavin5@hotmail.com>2022-07-20 14:02:43 +0200
commit9087a6e0ec7c2dfe2fe7b8bd9dfde8817afbd16d (patch)
tree4ad3f17f78e65a2737eeaa152b74624ed6cbf431 /tools
parent77e6e2804dcbcb5fe1935682199062c0adac758e (diff)
Add better handling of ternary expressions
Diffstat (limited to 'tools')
-rw-r--r--tools/odinfmt/tests/.snapshots/binary_expressions.odin3
-rw-r--r--tools/odinfmt/tests/binary_expressions.odin3
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)
}