From b3c73c280e213b7bda12af1559a655ab46ab1fca Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 26 Jul 2018 15:56:19 -0700 Subject: [PATCH] Fixed bug where Text was the first item in an index chain. --- nomsu_compiler.moon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nomsu_compiler.moon b/nomsu_compiler.moon index 74158e8..fb834cd 100644 --- a/nomsu_compiler.moon +++ b/nomsu_compiler.moon @@ -569,7 +569,7 @@ with NomsuCompiler for i, bit in ipairs tree nomsu\append "." if i > 1 local bit_nomsu - bit_nomsu = if bit.type == "Text" and #bit == 1 and type(bit[1]) == 'string' and Parser.is_identifier(bit[1]) + bit_nomsu = if i > 1 and bit.type == "Text" and #bit == 1 and type(bit[1]) == 'string' and Parser.is_identifier(bit[1]) bit[1] else recurse(bit, nomsu) assert bit.type != "Block"