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

Comments in empty functions are moved next to function parentheses #195

Closed
ok-nick opened this issue Jun 16, 2021 · 1 comment
Closed

Comments in empty functions are moved next to function parentheses #195

ok-nick opened this issue Jun 16, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@ok-nick
Copy link

ok-nick commented Jun 16, 2021

Before format:

local function foo()
	-- bar
end

After format once:

local function foo() 	-- bar
end

After format twice:

local function foo() -- bar end
@JohnnyMorganz JohnnyMorganz added the bug Something isn't working label Jun 16, 2021
@JohnnyMorganz
Copy link
Owner

Since this is a syntax breaking bug, for the time being I would recommend adding -- stylua: ignore above the function definition to unblock you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants