diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-11-09 17:02:39 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-11-09 17:02:53 -0800 |
| commit | fa3f598fc3b91d92665fda293460944f75c95b67 (patch) | |
| tree | a5d19eac16d81873ab51171bdd5670793baa4ff8 /nomsu_decompiler.moon | |
| parent | 69aaea030e08e083151aa25b8080eddd0d4c1683 (diff) | |
Fixing the upgrade pipeline, plus some misc. fixes.
Diffstat (limited to 'nomsu_decompiler.moon')
| -rw-r--r-- | nomsu_decompiler.moon | 4 |
1 files changed, 2 insertions, 2 deletions
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" |
