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
I think that empty lines in tables are good for separating groups of fields and describing them by using comments, like this:
localtable= {
-- This field below is very interestingfield="123",
-- WOW! Such nice fields!anotherField=345,
isThisVariableFalse=true,
-- Good choices!favoriteColor="#FF0000",
favoriteTrigonometricFunction=math.cos,
-- How poetic...anEmptyTable= {}
}
However, running lua-fmt, all the empty lines get erased, which causes the code to look rather messy:
localtable= {
-- This field below is very interestingfield="123",
-- WOW! Such nice fields!anotherField=345,
isThisVariableFalse=true,
-- Good choices!favoriteColor="#FF0000",
favoriteTrigonometricFunction=math.cos,
-- How poetic...anEmptyTable= {}
}
The text was updated successfully, but these errors were encountered:
I think that empty lines in tables are good for separating groups of fields and describing them by using comments, like this:
However, running lua-fmt, all the empty lines get erased, which causes the code to look rather messy:
The text was updated successfully, but these errors were encountered: