I was experimenting with using StyLua on minified Lua, and found that StyLua fails to parse this valid Lua when minified.
source:
local function test()
goto end_thing
local x = 1
::end_thing::
end
-> minified:
local function a()goto b;local c=1::b::end
with error:
error: could not format file minified.lua: error parsing: unexpected token `end`. (starting from line 1, character 40
and ending on line 1, character 43)
additional information: expected identifier after `::`
If I add a semicolon after local c = 1 in the minified Lua then it parses as expected.
I was experimenting with using StyLua on minified Lua, and found that StyLua fails to parse this valid Lua when minified.
source:
-> minified:
with error:
If I add a semicolon after
local c = 1in the minified Lua then it parses as expected.