We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
running formatText on these lines
function Test() if a == 0 then print("1") -- a is one elseif a == 1 then print("2") end end
result is
function Test() if a == 0 then -- a is one print("1") elseif a == 1 then print("2") end end
The text was updated successfully, but these errors were encountered:
This also happens if you when you have a comment before the 'end' line of an if-else-end block.
Input:
if condition then doStuff() else doOtherStuff() --comment end
Output:
if condition then doStuff() else --comment doOtherStuff() end
Sorry, something went wrong.
another case I found Input:
if 1 then doSomething() -- comment end
Result:
No branches or pull requests
running formatText on these lines
result is
The text was updated successfully, but these errors were encountered: