From 435eae7c0ab10577431bb943a6f48873e5ecdf7c Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 30 Dec 2018 21:16:49 -0800 Subject: Some minor fixes for (type of $ast) and indexing codegen. --- 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 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] -- cgit v1.2.3