diff options
Diffstat (limited to 'lib/operators.nom')
| -rw-r--r-- | lib/operators.nom | 3 |
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; |
