aboutsummaryrefslogtreecommitdiff
path: root/nomsu_decompiler.moon
diff options
context:
space:
mode:
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]