aboutsummaryrefslogtreecommitdiff
path: root/lib/operators.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-10-02 20:17:52 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-10-02 20:17:52 -0700
commit9251b462dae2ee808a57c17518697916e3db4c6f (patch)
tree4e3e09c2258479472188518d019486ad8fe6b581 /lib/operators.nom
parente3200dece1ba596c84fe69640db683e0973e926b (diff)
Fixed one compiler bug with comments immediately after indenting
Diffstat (limited to 'lib/operators.nom')
-rw-r--r--lib/operators.nom3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/operators.nom b/lib/operators.nom
index c15298f..17d7e34 100644
--- a/lib/operators.nom
+++ b/lib/operators.nom
@@ -13,10 +13,9 @@ compile [nop, pass] to code: ""
# Ternary operator
compile [%if_expr if %condition else %else_expr] to: ".."
- |(function(nomsu, vars)
- # TODO: fix compiler bug that breaks this code if comments immediately follow ".."
#.. Note: this uses a function instead of (condition and if_expr or else_expr)
because that breaks if %if_expr is falsey.
+ |(function(nomsu, vars)
| if \(%condition) then;
| return \(%if_expr);
| else;