TypeScriptToLua / TypeScriptToLua

Typescript to lua transpiler. https://typescripttolua.github.io/
MIT License
2.16k stars 172 forks source link

Support for loop labels #391

Open andreiradu opened 5 years ago

andreiradu commented 5 years ago
loop1:
for (let i = 0; i < 5; i++) {
  if (i === 1) {
    continue loop1;
  }
  str = str + i;
}
fetzsav commented 10 months ago

super old request here, but I think this should be easy to implement

if i % 2 == 0 then goto continue end print(i) ::continue::