From fa3f598fc3b91d92665fda293460944f75c95b67 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 9 Nov 2018 17:02:39 -0800 Subject: Fixing the upgrade pipeline, plus some misc. fixes. --- nomsu_decompiler.moon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nomsu_decompiler.moon') diff --git a/nomsu_decompiler.moon b/nomsu_decompiler.moon index 828df06..1de60ca 100644 --- a/nomsu_decompiler.moon +++ b/nomsu_decompiler.moon @@ -137,7 +137,7 @@ tree_to_inline_nomsu = (tree)-> when "Comment" -- TODO: implement? - return nil + return NomsuCode\from(tree.source) when "Error" error("Can't compile errors") @@ -307,7 +307,7 @@ tree_to_nomsu = (tree)-> return nomsu when "Comment" - nomsu\append "#", tree[1]\gsub("\n", "\n ") + nomsu\append "#", (tree[1]\gsub("\n", "\n ")) return nomsu when "IndexChain", "Number", "Var", "Comment", "Error" -- cgit v1.2.3