goto label statement doesn't work in Corona (flow control)!?

After realizing the my horror, that for some reason, Lua doesn’t have a Continue statement. I found this:

http://lua-users.org/wiki/GotoStatement

I liked the idea, of goto [::label::] as it meant, less usage of nested if/elseif statements;
and thus much cleaner code;

However the Corona, debugger crashes everytime I create a label.

::label1::

Trying the default example from the link above

for z=1,10 do  
for y=1,10 do  
for x=1,10 do  
 if x^2 + y^2 == z^2 then  
 print('found a Pythagorean triple:', x, y, z)  
 goto done  
 end  
end end end  
::done::  

I get the error
’=’ expected near done

If I put a ::reset:: label at the start I get the error:
"Unexpected error near :"

Am I doing something wrong?
I checked the syntax several times, and it should be correct, according to the Lua user’s wiki.

Thanks in advance for any replies
[import]uid: 144151 topic_id: 26128 reply_id: 326128[/import]

goto is a new Lua 5.2 feature. Corona is still on 5.1.
[import]uid: 7563 topic_id: 26128 reply_id: 105847[/import]

Okay thanks [import]uid: 144151 topic_id: 26128 reply_id: 105867[/import]

I heard there was a new build of Corona SDK available, what version of Lua does that use?

How do I check which version of Lua, a given build is using?
[import]uid: 144151 topic_id: 26128 reply_id: 105868[/import]

You can check which version of lua is used by corona by adding this line to your code (it will print to terminal) :

print(\_VERSION) [import]uid: 84637 topic_id: 26128 reply_id: 106079[/import]