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

Implemented "Multiple expressions in one line" wrapping setting #398

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pouwelsjochem
Copy link
Contributor

This enables the user to configure wether they'd like to every statement to be on a single line or not.

Some examples of where multiple statements on a line could be used in Lua:

local object = createMyObject({
    width = 16,
    height = 16
}); object:playAnimation()

or

local newString = string.gsub(oldString, "_suffix", ""); print(newString)

@pouwelsjochem
Copy link
Contributor Author

Also added the "Chained method calls" settings which can prevent unwanted indentation when chaining method calls

local test = test:test(function()

end)               :test()

Will become this when disabled

local test = test:test(function()

end):test()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant