aboutsummaryrefslogtreecommitdiff
path: root/nomsu_decompiler.moon
diff options
context:
space:
mode:
Diffstat (limited to 'nomsu_decompiler.moon')
-rw-r--r--nomsu_decompiler.moon2
1 files changed, 2 insertions, 0 deletions
diff --git a/nomsu_decompiler.moon b/nomsu_decompiler.moon
index 4c733f5..b588e1e 100644
--- a/nomsu_decompiler.moon
+++ b/nomsu_decompiler.moon
@@ -64,9 +64,11 @@ tree_to_inline_nomsu = (tree)->
if tree[1].type == "Block"
target_nomsu\parenthesize!
nomsu = NomsuCode\from(tree.source, target_nomsu, ", ")
+ if #tree > 2 then nomsu\add "("
for i=2,#tree
nomsu\add "; " if i > 2
nomsu\add tree_to_inline_nomsu(tree[i])
+ if #tree > 2 then nomsu\add ")"
return nomsu
when "EscapedNomsu"