The following code:
(comment
(let [[a b] [1 2]]
(+ a b)))
When compiled produces Lua code that is not syntactically valid:
--[[ (let [[a b] [1 2]] (+ a b)) ]]
return nil
I believe comment
should check if its body contains the delimiter, and use [=[ syntax ]=] instead.
This even breaks with strings:
-- (comment "]]")
--[[ "]]" ]]
return nil
I think this was fixed in 5c94c7fe07b3c8901976a8521bff913a6b96cb0d.