aboutsummaryrefslogtreecommitdiff
path: root/nomsu_decompiler.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nomsu_decompiler.lua')
-rw-r--r--nomsu_decompiler.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/nomsu_decompiler.lua b/nomsu_decompiler.lua
index 46316d1..19ede3c 100644
--- a/nomsu_decompiler.lua
+++ b/nomsu_decompiler.lua
@@ -88,6 +88,9 @@ tree_to_inline_nomsu = function(tree)
nomsu:append(arg_nomsu)
end
end
+ if #tree == 1 and type(tree[1]) ~= "string" then
+ nomsu:append("()")
+ end
return nomsu
elseif "EscapedNomsu" == _exp_0 then
local inner_nomsu = tree_to_inline_nomsu(tree[1])
@@ -326,6 +329,13 @@ tree_to_nomsu = function(tree)
end
end
nomsu:append(next_space, words)
+ next_space = " "
+ end
+ if #tree == 1 and type(tree[1]) ~= "string" then
+ if next_space == " " then
+ next_space = ""
+ end
+ nomsu:append(next_space, "()")
end
return nomsu
elseif "EscapedNomsu" == _exp_0 then