lua-fmt
lua-fmt copied to clipboard
Fix comment indentation in if statement without else
*fixed from previous PR to not re format import when format empty if block without else the comment is not indent properly
input:
if 1 then
-- body IfClause
end
output before:
if 1 then
-- body IfClause
end
fix to:
if 1 then
-- body IfClause
end
and remove bracket in switch case which not match other case in src/docPrinter.ts
@trixnz Is there anything blocking this?