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

Lines wrap incorrectly inside function call with trailing comments #57

Closed
KyleMit opened this issue Feb 17, 2021 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@KyleMit
Copy link

KyleMit commented Feb 17, 2021

Input

function sayHello(
	name,    -- YourName
	greeting -- Message
)
	return greeting .. ", " .. name
end

Output

function sayHello(name, greeting -- Message)
	return greeting .. ", " .. name
end

Expected output should stay the same as input. This is perhaps related to the existing issue to allow for wrapping within a functional call (#34), but more problematic in that it creates a syntax error when wrapping params with trailing comments

Related Issues

@JohnnyMorganz JohnnyMorganz added the bug Something isn't working label Feb 18, 2021
@JohnnyMorganz
Copy link
Owner

It also looks like it is losing comments within the function arguments too

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