From 63c14bdbc3afbb3819c0f6ca4435cff1179f68f0 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 9 Nov 2018 17:50:00 -0800 Subject: [PATCH] Changed clumping to only be different for "'", not other operators. --- nomsu_decompiler.lua | 2 +- nomsu_decompiler.moon | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nomsu_decompiler.lua b/nomsu_decompiler.lua index 83561b3..bfa700a 100644 --- a/nomsu_decompiler.lua +++ b/nomsu_decompiler.lua @@ -61,7 +61,7 @@ tree_to_inline_nomsu = function(tree) if type(tree[i - 1]) == 'string' then clump_words = is_operator(bit) ~= is_operator(tree[i - 1]) else - clump_words = is_operator(bit) + clump_words = bit == "'" end if i > 1 and not clump_words then nomsu:append(" ") diff --git a/nomsu_decompiler.moon b/nomsu_decompiler.moon index b711112..750ccb5 100644 --- a/nomsu_decompiler.moon +++ b/nomsu_decompiler.moon @@ -42,7 +42,7 @@ tree_to_inline_nomsu = (tree)-> if type(bit) == "string" clump_words = if type(tree[i-1]) == 'string' is_operator(bit) != is_operator(tree[i-1]) - else is_operator(bit) + else bit == "'" nomsu\append " " if i > 1 and not clump_words nomsu\append bit else