diff options
Diffstat (limited to 'nomsu_tree.lua')
| -rw-r--r-- | nomsu_tree.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nomsu_tree.lua b/nomsu_tree.lua index 817c325..92871e5 100644 --- a/nomsu_tree.lua +++ b/nomsu_tree.lua @@ -203,13 +203,15 @@ Tree("Action", { local src = tok.source:get_text() error("non-expression value inside math expression: " .. tostring(colored.yellow(src))) end + if tok.type == "Action" then + tok_lua:parenthesize() + end lua:append(tok_lua) end if i < #self.value then lua:append(" ") end end - lua:parenthesize() return lua end local args = { } |
