aboutsummaryrefslogtreecommitdiff
path: root/nomsu_tree.moon
diff options
context:
space:
mode:
Diffstat (limited to 'nomsu_tree.moon')
-rw-r--r--nomsu_tree.moon3
1 files changed, 2 insertions, 1 deletions
diff --git a/nomsu_tree.moon b/nomsu_tree.moon
index 0119490..4af4dfc 100644
--- a/nomsu_tree.moon
+++ b/nomsu_tree.moon
@@ -132,10 +132,11 @@ Tree "Action",
unless tok_lua.is_value
src = tok.source\get_text!
error("non-expression value inside math expression: #{colored.yellow src}")
+ if tok.type == "Action"
+ tok_lua\parenthesize!
lua\append tok_lua
if i < #@value
lua\append " "
- lua\parenthesize!
return lua
args = {}