aboutsummaryrefslogtreecommitdiff
path: root/core/control_flow.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-06-14 21:59:25 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-06-14 21:59:43 -0700
commit82cfd3e54b5910843c091a9fb6ef3ad6b64ba757 (patch)
treeaed04a3910646c82447b9b4b515169005b3010af /core/control_flow.nom
parent282565a309aef632502a64fef0a67b0b7efcfaaa (diff)
More streamlining and cleanup. Especially for core/metaprogramming.nom
Diffstat (limited to 'core/control_flow.nom')
-rw-r--r--core/control_flow.nom2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/control_flow.nom b/core/control_flow.nom
index f0238a4..2c85221 100644
--- a/core/control_flow.nom
+++ b/core/control_flow.nom
@@ -39,7 +39,7 @@ immediately
..to
# If %when_true_expr is guaranteed to be truthy, we can use Lua's idiomatic
equivalent of a conditional expression: (cond and if_true or if_false)
- if: %when_true_expr.type in {Text:yes, List:yes, Dict:yes, Number:yes}
+ if: {Text:yes, List:yes, Dict:yes, Number:yes}.(%when_true_expr.type)
return
Lua value ".."
(\(%condition as lua expr) and \(%when_true_expr as lua expr) or \(%when_false_expr as lua expr))