Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lua code formatting moves some end-of-line comments to a new line #161

Open
wushu037 opened this issue Sep 13, 2023 · 0 comments
Open

Lua code formatting moves some end-of-line comments to a new line #161

wushu037 opened this issue Sep 13, 2023 · 0 comments

Comments

@wushu037
Copy link

Environment

Name Version
IDEA version CLion 2023.2.1
Luanalysis version v1.4.0
OS MacOS 13.5.2

Preferences

image

Lua

Name Setting
Language level Lua 5.4.6

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant