-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Add indentationRules to lua #34303
Add indentationRules to lua #34303
Conversation
So, Rinqu and I were discussing this, and it came up that a pull request should be made. I kinda thought Rinqu would add some context, but oh well, I'll add it. This is a PR for the same thing as #31696, but we examined it and considered it inferior to this PR. I don't know git all that well, so I don't know if there's an easy way to show differences between the PRs, so I'll just put them in here. #31969 :
#34303 :
Henceforth, "first pr" and "original pr" will refer to #31696 and "current pr" will refer to #34303. The original PR increases indent on Another benefit to this format is it allows this coding style: if x
then
-- code
elseif y
then
-- code
end While I cannot speak of the popularity of the format, it still seems better to support it, as opposed to
The current PR also explicitly allows one liners ( Proper support for the repeat
-- code
until truthy structure is important as well, which the previous PR had improperly implemented. These reasons are why we consider #34303 to be superior to #31696. |
Not sure why the macOS build failed but looks unrelated? |
Could be unrelated, could also be some RegEx trickery. I'm not honestly sure, and I spent a little bit trying to figure out where TextSearch tests were, but was unable to find them. |
fyi @rebornix |
No description provided.