aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nomsu_compiler.moon2
1 files changed, 1 insertions, 1 deletions
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"