lua-fmt icon indicating copy to clipboard operation
lua-fmt copied to clipboard

Fix comment indentation in if statement without else

Open Arpple opened this issue 5 years ago • 1 comments

*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

Arpple avatar Oct 17 '18 10:10 Arpple

@trixnz Is there anything blocking this?

nico-abram avatar May 17 '19 06:05 nico-abram