Repository navigation
Add indentationRules to lua - #34303
Conversation
|
rinqu-eu, thanks for your PR! By analyzing the history of the files in this pull request, we identified Erich Gamma (@egamma) to be a potential reviewer. |
|
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
endWhile 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 truthystructure 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. |
|
I will first merge #31696 and then this one to also give credit to jep (@jep-a) , which work you've built upon. I am not familiar with lua, so if you don't mind I will ping both of you for help (rinqu-eu and Zee1234) if issues come up. Hope you won't mind! :) |
No description provided.