TEST [[ local = 1 ]] TEST [[ local z, y, = 1 ]] TEST [[ local = 1 = 1 ]] TEST [[ local z, y, = 1 = 1 ]] TEST [[ local x local = 1 ]] TEST [[ local do = 1 end ]] TEST [[ local do local x end = 1 ]] TEST [[ local if then local x end ]] TEST [[ local if x2 then local x2 elseif then local x2 end ]] TEST [[ local if x then local x elseif x then local x else local x end = 1 ]] TEST [[ local if x then = 1 elseif x then local x else local x end ]] TEST [[ local for x = 1, 10 do end = 1 ]] TEST [[ local x for = 1, 10 do = 1 end ]] TEST [[ local for x in x do end = 1 ]] TEST [[ local for x in do end ]] TEST [[ local x for in x do = 1 end ]] TEST [[ local x for z, y, in x do = 1 end ]] TEST [[ local while do end ]] TEST [[ local while x do = 1 end ]] TEST [[ local while x do local x end = 1 ]] TEST [[ local repeat = 1 until true ]] TEST [[ local repeat local x until true = 1 ]] TEST [[ local repeat until ]] TEST [[ local x repeat local until ]] TEST [[ local function _() local x end = 1 ]] TEST [[ local return function () = 1 end ]] TEST [[ local local x = function () = 1 end ]]