Open drauschenbach opened 5 years ago
I think this is correct, actually. You should add one or more =
to your comment, like so:
--[=[
call_function([[
local x = 1
local y = 2
... dozens more lines
]])
--]=]
As @CelticMinstrel notes, if you are trying to nest block comments in Lua you should be using different =
counts in the comment syntax to differentiate which starts go with which stops.
Also per #198 this is no longer the canonical repository for this project (see https://github.com/lunarmodules/luacheck) and nobody has any ability to close issues here. Please lets try to keep things tidy so future users can better notice the relevant migration issue. I ask that you please close this issue. If something is still amiss and you have a bug or question, feel free to open a new issue on the current repository.
Given the following commented-out code:
LuaCheck reports:
spec.lua:237:3: (E011) expected statement near ')'