Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix comment indentation in if statement without else #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Arpple
Copy link

@Arpple Arpple commented Oct 17, 2018

*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

@nico-abram
Copy link

@trixnz Is there anything blocking this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants