From b5a5b7f90d576b0a926e9630a3efb1ebfd5539d7 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 9 Nov 2018 17:53:21 -0800 Subject: Fixed other place for clumping "'" --- nomsu_decompiler.moon | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'nomsu_decompiler.moon') diff --git a/nomsu_decompiler.moon b/nomsu_decompiler.moon index 750ccb5..69d9d76 100644 --- a/nomsu_decompiler.moon +++ b/nomsu_decompiler.moon @@ -209,8 +209,10 @@ tree_to_nomsu = (tree)-> for i,bit in ipairs tree if type(bit) == "string" - unless next_space == " " and (type(tree[i-1]) == 'string' and is_operator(tree[i-1]) != is_operator(bit)) - nomsu\append next_space + clump_words = if type(tree[i-1]) == 'string' + is_operator(bit) != is_operator(tree[i-1]) + else bit == "'" + nomsu\append " " if i > 1 and not clump_words nomsu\append bit next_space = nomsu\trailing_line_len! > MAX_LINE and " \\\n.." or " " else -- cgit v1.2.3