diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-26 15:56:19 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-26 15:56:59 -0700 |
| commit | b3c73c280e213b7bda12af1559a655ab46ab1fca (patch) | |
| tree | 56d0910beb5bb549657a4ed7f79ddc1121184b75 /nomsu_compiler.moon | |
| parent | f434b6b167477971f1df54ffc71b031e13705a75 (diff) | |
Fixed bug where Text was the first item in an index chain.
Diffstat (limited to 'nomsu_compiler.moon')
| -rw-r--r-- | nomsu_compiler.moon | 2 |
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" |
