diff options
Diffstat (limited to 'nomsu_compiler.moon')
| -rw-r--r-- | nomsu_compiler.moon | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nomsu_compiler.moon b/nomsu_compiler.moon index 387c901..1106382 100644 --- a/nomsu_compiler.moon +++ b/nomsu_compiler.moon @@ -631,7 +631,10 @@ with NomsuCompiler when "Action" nomsu = NomsuCode(tree.source) if tree.target - nomsu\append @tree_to_inline_nomsu(tree.target), "::" + inline_target = @tree_to_inline_nomsu(tree.target) + if tree.target.type == "Action" + inline_target\parenthesize! + nomsu\append inline_target, "::" for i,bit in ipairs tree if type(bit) == "string" clump_words = (type(tree[i-1]) == 'string' and is_operator(bit) != is_operator(tree[i-1])) |
