From 2b4196bc2027096f070c07fb279cf18d5fb20ee5 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 11 Nov 2018 18:52:45 -0800 Subject: Added (% as hex) and fixed bug with text interpolation codegen not adding parens around indexchains. --- nomsu_decompiler.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nomsu_decompiler.lua') diff --git a/nomsu_decompiler.lua b/nomsu_decompiler.lua index 4312f6a..9dd2316 100644 --- a/nomsu_decompiler.lua +++ b/nomsu_decompiler.lua @@ -392,7 +392,7 @@ tree_to_nomsu = function(tree) if type(tree[i + 1]) == 'string' and not match(tree[i + 1], "^[ \n\t,.:;#(){}[%]]") then interp_nomsu:parenthesize() end - elseif bit.type == "EscapedNomsu" or bit.type == "Block" then + elseif bit.type == "EscapedNomsu" or bit.type == "Block" or bit.type == "IndexChain" then interp_nomsu:parenthesize() end end -- cgit v1.2.3