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-fmt requires multiple runs to format a Lua file due to inline table #26

Open
henriquegemignani opened this issue Aug 27, 2018 · 0 comments
Labels

Comments

@henriquegemignani
Copy link

henriquegemignani commented Aug 27, 2018

The following code:

explodeEmitter:addOnCompleteToEmmiter({ callback = function() notify("kIceExplosionFinished") end })

Gets formatted into this:

explodeEmitter:addOnCompleteToEmmiter(
    {callback = function()
            notify("kIceExplosionFinished")
        end}
)

That when formatting again, returns this:

explodeEmitter:addOnCompleteToEmmiter(
    {
        callback = function()
            notify("kIceExplosionFinished")
        end
    }
)

Running lua-fmt via vscode-lua 0.12.4

@trixnz trixnz added the bug label Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants