This moonscript:
things = {1, nil, 2}
for thing in *things
if move == nil
continue
print(thing)
return
Compiles to invalid lua:
local things = {
1,
nil,
2
}
for _index_0 = 1, #things do
local _continue_0 = false
repeat
local thing = things[_index_0]
if move == nil then
_continue_0 = true
break
end
print(thing)
return
_continue_0 = true
until true
if not _continue_0 then
break
end
end
The error:
lua: bug.lua:16: 'until' expected (to close 'repeat' at line 8) near '='