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

Remaining of binary expression gets formatted behind a comment #416

Closed
jeparlefrancais opened this issue Mar 21, 2022 · 2 comments · Fixed by #420
Closed

Remaining of binary expression gets formatted behind a comment #416

jeparlefrancais opened this issue Mar 21, 2022 · 2 comments · Fixed by #420
Labels
bug Something isn't working

Comments

@jeparlefrancais
Copy link

Here is a reproducible example for 0.12.5

local variable = call(
        somethingToCall().foo.bar.baz,
        "some super long string that will stay on this line"
    ) -- a comment
.. "another string"

Converts to:

local variable = call(
    somethingToCall().foo.bar.baz,
    "some super long string that will stay on this line"
) -- a comment .. "another string"
@JohnnyMorganz JohnnyMorganz added the bug Something isn't working label Mar 21, 2022
@JohnnyMorganz
Copy link
Owner

Just tried formatting this but I cannot reproduce, I get the following formatting:

local variable = call(somethingToCall().foo.bar.baz, "some super long string that will stay on this line") -- a comment
	.. "another string"

@LastTalon
Copy link
Contributor

Looks like it may be a different column length. Probably shorten it in the settings or increase the length of the long string.

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

Successfully merging a pull request may close this issue.

3 participants