aboutsummaryrefslogtreecommitdiff
path: root/nomsu_decompiler.moon
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-12-30 21:16:49 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-12-30 21:17:10 -0800
commit435eae7c0ab10577431bb943a6f48873e5ecdf7c (patch)
treee56cf4f0ecdf0a0502fb2e24148ab490ebd00549 /nomsu_decompiler.moon
parent44c3fb26bfe922eb8bd749e8397a5de716b5d56c (diff)
Some minor fixes for (type of $ast) and indexing codegen.
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 b54553d..181d73f 100644
--- a/nomsu_decompiler.moon
+++ b/nomsu_decompiler.moon
@@ -139,7 +139,7 @@ tree_to_inline_nomsu = (tree)->
when "IndexChain"
nomsu = NomsuCode\from(tree.source)
for i, bit in ipairs tree
- nomsu\add "." if i > 1
+ nomsu\add "." if i > 1 and bit.type != "Index"
local bit_nomsu
bit_nomsu = if i > 1 and bit.type == "Text" and #bit == 1 and type(bit[1]) == 'string' and is_identifier(bit[1])
bit[1]