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
Formatting a function with a comment after a single return type enclosed in parentheses formats the code from something like this:
functionfoo(): (
nil-- Some comment
)
returnnilend
To this:
functionfoo(): (nil-- Some comment)returnnilend
The closing parentheses is now part of the comment and produces a syntax error.
StyLua could either enforce no parentheses on single return types or format it as the original code block when parentheses are found, either solution works IMO.
The text was updated successfully, but these errors were encountered:
Formatting a function with a comment after a single return type enclosed in parentheses formats the code from something like this:
To this:
The closing parentheses is now part of the comment and produces a syntax error.
StyLua could either enforce no parentheses on single return types or format it as the original code block when parentheses are found, either solution works IMO.
The text was updated successfully, but these errors were encountered: