Skip to content

Closing brace from arrays moved to next line #499

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

Closed
Martin-Milbradt opened this issue Sep 11, 2024 · 1 comment · Fixed by #552
Closed

Closing brace from arrays moved to next line #499

Martin-Milbradt opened this issue Sep 11, 2024 · 1 comment · Fixed by #552
Assignees
Labels
AHK v2 exclusive to AHK v2 bug something isn't working formatter code formatter issues

Comments

@Martin-Milbradt
Copy link

Martin-Milbradt commented Sep 11, 2024

Description

Closing braces of arrays get moved to the next line.

Expected formatted output snippet

return [1, 0, 0]

Actual formatted output snippet

return [1, 0, 0
]

Additional context

foo := ["bar", "baz"
]
@Martin-Milbradt Martin-Milbradt added bug something isn't working formatter code formatter issues labels Sep 11, 2024
@mark-wiemer
Copy link
Owner

OK, I think I know the cause. Note to self: expose the hidden "preserve" option ;)

@mark-wiemer mark-wiemer added the AHK v2 exclusive to AHK v2 label Oct 18, 2024
@mark-wiemer mark-wiemer changed the title Closing brace from arrays moved to next line [AHK v2] Closing brace from arrays moved to next line Oct 18, 2024
@mark-wiemer mark-wiemer pinned this issue Oct 18, 2024
mark-wiemer added a commit that referenced this issue Oct 19, 2024
Fixes "Closing brace from arrays moved to next line" #499
mark-wiemer added a commit that referenced this issue Oct 19, 2024
@mark-wiemer mark-wiemer unpinned this issue Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AHK v2 exclusive to AHK v2 bug something isn't working formatter code formatter issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants