You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
henriquegemignani
changed the title
lua-fmt requires multiple runs to format a Lua file
lua-fmt requires multiple runs to format a Lua file due to comments
Aug 27, 2018
When formatting the following code sample:
We get the following result:
If we run lua-fmt in that snippet, we get this second output:
A third use gives yet another output:
A fourth use is thankfully final:
This simple edit in the original resolves all issues:
(removed the
--
after the "Small string" comment)Running lua-fmt via vscode-lua 0.12.4
The text was updated successfully, but these errors were encountered: