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.moon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nomsu_decompiler.moon') diff --git a/nomsu_decompiler.moon b/nomsu_decompiler.moon index 6053979..918779e 100644 --- a/nomsu_decompiler.moon +++ b/nomsu_decompiler.moon @@ -309,7 +309,7 @@ tree_to_nomsu = (tree)-> if bit.type == "Var" if type(tree[i+1]) == 'string' and not match(tree[i+1], "^[ \n\t,.:;#(){}[%]]") interp_nomsu\parenthesize! - elseif bit.type == "EscapedNomsu" or bit.type == "Block" + elseif bit.type == "EscapedNomsu" or bit.type == "Block" or bit.type == "IndexChain" interp_nomsu\parenthesize! nomsu\append interp_nomsu if interp_nomsu\is_multiline! -- cgit v1.2.3