diff options
Diffstat (limited to 'nomsu_decompiler.moon')
| -rw-r--r-- | nomsu_decompiler.moon | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nomsu_decompiler.moon b/nomsu_decompiler.moon index 03e9956..090e9b2 100644 --- a/nomsu_decompiler.moon +++ b/nomsu_decompiler.moon @@ -95,7 +95,8 @@ tree_to_inline_nomsu = (tree)-> interp_nomsu = tree_to_inline_nomsu(bit) if bit.type != "Var" and bit.type != "List" and bit.type != "Dict" interp_nomsu\parenthesize! - elseif bit.type == "Var" and type(tree[i+1]) == 'string' and not match(tree[i+1], "^[ \n\t,.:;#(){}[%]]") + elseif bit.type == "Var" and type(bit[1]) == 'string' and + type(tree[i+1]) == 'string' and not match(tree[i+1], "^[ \n\t,.:;#(){}[%]]") interp_nomsu\parenthesize! nomsu\add "\\", interp_nomsu nomsu = NomsuCode\from(tree.source) |
