This can occur with do (while and for) and then any time there is a parenthesis in the line except for when the parenthesis is enclosed in a ‘multiline’/block comment.
Also, there’s this:
while --[[]] do
Becomes
while --[[]] do
]]
Same with if and other do if --[[ is anywhere on the line.
This really isn’t that important though, I think. I’ve barely ever seen code use a ‘multiline comment’ in the middle of a line like that, but it’s a bug anyway with similar behavior to the parenthesis one so I figured it’s worth knowing about.