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

Format document: After "if" statement without brackets a comment is formatted wrong #59

Closed
digitalAssetStore opened this issue Mar 2, 2021 · 0 comments · Fixed by #164
Assignees
Labels
bug something isn't working formatter code formatter issues

Comments

@digitalAssetStore
Copy link

digitalAssetStore commented Mar 2, 2021

Description

After "if" statement without brackets a comment is formatted wrong.

Unformatted input snippet

if (true)
; comment
   success = 1
else
   success = 1

Expected formatted output snippet

if (true)
   ; comment
   success = 1
else
   success = 1

Actual formatted output snippet

if (true)
   ; comment
success = 1
else
   success = 1

Thanks in advance

@digitalAssetStore digitalAssetStore added bug something isn't working formatter code formatter issues labels Mar 2, 2021
@mark-wiemer mark-wiemer added this to the Backlog milestone Mar 11, 2021
@mark-wiemer mark-wiemer changed the title Format document: After "if" statement without brackets a comment if formatted wrong Format document: After "if" statement without brackets a comment is formatted wrong Nov 25, 2021
@mark-wiemer mark-wiemer added this to AHK++ Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working formatter code formatter issues
Projects
Status: No status
2 participants