aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-11-09 17:50:00 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-11-09 17:50:12 -0800
commit63c14bdbc3afbb3819c0f6ca4435cff1179f68f0 (patch)
tree6fe72b9a6beac7dd18c4e609d0f4763496b82425
parentc36798f2ad66511b61aeffc9b86db03069a0bbb9 (diff)
Changed clumping to only be different for "'", not other operators.
-rw-r--r--nomsu_decompiler.lua2
-rw-r--r--nomsu_decompiler.moon2
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