This code will not work after compilation with the --correlate
flag
(comment "foo") (local x 10)
(print x)
Without --correlate
the code works because local
is put on its own line, but with correlate
the following happens:
--[[ "foo" ]]-- local x = 10
return print(x)
local x = 10
is a part of the comment, because multiline comments in Lua end with just ]]
not with ]]--
In other words, it's similar to ending C comments like this /* foo *///
I've sent the patch, but the pipeline seems to be broken with something unrelated