The following code will throw an error while processing:
for i = 1, 2 do
goto continue
break
::continue::
end
E5108: Error executing lua vim.lua:63: <file_path>:8: ‘end’ expected (to close ‘for’ at line 5) near ‘::’
While this will work as desired.
for i = 1, 2 do
goto continue
if true then
break
end
::continue::
end
It seems to expect end to always follow break when in the first depth of the for loop.
Functionally they would work the same so I am wondering if this is a bug or if there is an underlying reason for this.