aboutsummaryrefslogtreecommitdiff
path: root/nomsu_decompiler.moon
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-11-11 18:52:45 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-11-11 18:53:06 -0800
commit2b4196bc2027096f070c07fb279cf18d5fb20ee5 (patch)
treef599f4ef058ab99bf9bc3c1195db4c9c95bfb5c5 /nomsu_decompiler.moon
parent2305f075b7e6309db72488d6ce9f8bd4260f02f3 (diff)
Added (% as hex) and fixed bug with text interpolation codegen not
adding parens around indexchains.
Diffstat (limited to 'nomsu_decompiler.moon')
-rw-r--r--nomsu_decompiler.moon2
1 files changed, 1 insertions, 1 deletions
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!