From a82b0d9d2435cca72629c1e5e73cdcb89f728ac0 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 1 Jan 2019 15:52:56 -0800 Subject: Added support for $(foo 1 baz 2) as a way to access (foo 1 baz 2)'s meaning. --- 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 3deaabc..9d4face 100644 --- a/nomsu_decompiler.moon +++ b/nomsu_decompiler.moon @@ -165,10 +165,10 @@ tree_to_inline_nomsu = (tree)-> when "Var" varname = tree[1] - if varname == "" or is_identifier(varname) + if type(varname) == "string" return NomsuCode\from(tree.source, "$", varname) else - return NomsuCode\from(tree.source, "$(", varname, ")") + return NomsuCode\from(tree.source, "$(", tree_to_inline_nomsu(varname), ")") when "FileChunks" error("Can't inline a FileChunks") -- cgit v1.2.3