diff --git a/moonscript/compile.lua b/moonscript/compile.lua index f4a529c..d832b3c 100644 --- a/moonscript/compile.lua +++ b/moonscript/compile.lua @@ -208,10 +208,10 @@ Block_ = (function(_parent_0) local header = flatten(self.header) if #self._lines == 0 then local footer = flatten(self.footer) - return(concat({ + return concat({ header, footer - }, " ")) + }, " ") end local indent = indent_char:rep(self.indent) if not self.delim then @@ -252,7 +252,7 @@ Block_ = (function(_parent_0) end, value = function(self, node, ...) if type(node) ~= "table" then - return(tostring(node)) + return tostring(node) end local fn = value_compile[node[1]] if not fn then diff --git a/moonscript/compile/line.lua b/moonscript/compile/line.lua index 638c7ef..8389050 100644 --- a/moonscript/compile/line.lua +++ b/moonscript/compile/line.lua @@ -36,11 +36,11 @@ line_compile = { assign = function(self, node) local _, names, values = unpack(node) if #values == 1 and cascading[ntype(values[1])] then - return(self:stm({ + return self:stm({ "assign", names, values[1] - })) + }) end local undeclared = self:declare(names) local declare = "local " .. concat(undeclared, ", ") @@ -180,7 +180,7 @@ line_compile = { _with_0:append_list(values, ", ") line = _with_0 end - return(line) + return line end self:add(self:line("local ", concat(final_names, ", "))) do @@ -371,7 +371,7 @@ line_compile = { }) loop = _with_0 end - return(loop) + return loop end local loop do diff --git a/moonscript/compile/value.lua b/moonscript/compile/value.lua index 892b91c..32c1688 100644 --- a/moonscript/compile/value.lua +++ b/moonscript/compile/value.lua @@ -163,7 +163,7 @@ value_compile = { end local sup = self:get("super") if callee == "super" and sup then - return(self:value(sup(self, node))) + return self:value(sup(self, node)) end local chain_item chain_item = function(node)