StyLua
StyLua copied to clipboard
[Lua 5.2] Parsing error when label is used after break
Attempting to format this valid Lua code:
for i = 1, 10 do
if i < 8 then
print(i)
goto continue
end
break
::continue::
end
gives the following error:
error: could not format from stdin: failed to format from stdin: error parsing: error occurred while creating ast: unexpected token `::`. (starting from line 52, character 5 and ending on line 52, character 7)
additional information: expected 'end'
This is likely a full-moon issue rather than something specific to stylua, but I don't want to jump the gun just in case.