diff --git a/moonscript/compile/statement.lua b/moonscript/compile/statement.lua index 8b250d5..d2e9dee 100644 --- a/moonscript/compile/statement.lua +++ b/moonscript/compile/statement.lua @@ -136,7 +136,7 @@ return { current = next end for _index_0 = 4, #node do - cond = node[_index_0] + local cond = node[_index_0] add_clause(cond) end return root diff --git a/moonscript/dump.lua b/moonscript/dump.lua index 8b69ec9..1496ed4 100644 --- a/moonscript/dump.lua +++ b/moonscript/dump.lua @@ -31,7 +31,7 @@ local tree tree = function(block) local _list_0 = block for _index_0 = 1, #_list_0 do - value = _list_0[_index_0] + local value = _list_0[_index_0] print(flat_value(value)) end end