End-of-line comments at the beginning of a block of statements are formatted with a line break. This may be mandatory, as I haven't found a setting for it anywhere.
For example, the following code
local function a () -- 1
end
if true then -- 2
else
end
would be formatted as
local function a ()
-- 1
end
if true then
-- 2
else
end
Environment
Preferences
Lua
Desc
End-of-line comments at the beginning of a block of statements are formatted with a line break. This may be mandatory, as I haven't found a setting for it anywhere.
For example, the following code
would be formatted as