From b2cec10592b0b3fcd6c8da04fcce709fbf2e5a5e Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 9 Nov 2018 17:48:35 -0800 Subject: Fixed `'s` clumping for stuff like (%foo's metatable) --- nomsu_decompiler.moon | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nomsu_decompiler.moon') diff --git a/nomsu_decompiler.moon b/nomsu_decompiler.moon index 0bc4805..b711112 100644 --- a/nomsu_decompiler.moon +++ b/nomsu_decompiler.moon @@ -40,7 +40,9 @@ tree_to_inline_nomsu = (tree)-> for i,bit in ipairs tree if type(bit) == "string" - clump_words = (type(tree[i-1]) == 'string' and is_operator(bit) != is_operator(tree[i-1])) + clump_words = if type(tree[i-1]) == 'string' + is_operator(bit) != is_operator(tree[i-1]) + else is_operator(bit) nomsu\append " " if i > 1 and not clump_words nomsu\append bit else -- cgit v1.2.3