aboutsummaryrefslogtreecommitdiff
path: root/core/operators.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-10-29 13:00:08 -0700
committerBruce Hill <bruce@bruce-hill.com>2018-10-29 13:00:30 -0700
commit23abab4f809e8d4b825746580082292db700036b (patch)
tree8eb95a3b781547abedadd08705a6e6291662737c /core/operators.nom
parentbe1df7ccd3fb5352ca666129aee93c56b5b27b40 (diff)
Some cleanups and fixes, made the parser more permissive of prematurely
terminated files.
Diffstat (limited to 'core/operators.nom')
-rw-r--r--core/operators.nom2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/operators.nom b/core/operators.nom
index 960440e..55756bb 100644
--- a/core/operators.nom
+++ b/core/operators.nom
@@ -157,7 +157,7 @@ compile [with %assignments %body] to:
test:
assume ((5 wrapped around 2) == 1) or barf "mod not working"
compile [%x wrapped around %y, %x mod %y] to (..)
- Lua value "(\(%x as lua expr) % \(%y as lua expr))"
+ Lua value "((\(%x as lua expr)) % (\(%y as lua expr)))"
# 3-part chained comparisons
# (uses a lambda to avoid re-evaluating middle value, while still being an expression)