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

Comments order is changed for statements with multiple comments and a semicolon at the end #423

Closed
ktrz opened this issue Mar 28, 2022 · 1 comment · Fixed by #424
Closed
Labels
bug Something isn't working

Comments

@ktrz
Copy link
Contributor

ktrz commented Mar 28, 2022

Input code

local foo = a <= b --[[ some block comment ]]; -- inline comment
fn() --[[ some block comment 2 ]]; -- inline comment 2

Current output

local foo = a <= b -- inline comment --[[ some block comment ]]
fn() -- inline comment 2 --[[ some block comment 2 ]]

Expected output

local foo = a <= b --[[ some block comment ]] -- inline comment
fn() --[[ some block comment 2 ]] -- inline comment 2
@ktrz ktrz changed the title Comments order is changed for statements with multiple comments and a ; Comments order is changed for statements with multiple comments and a semicolon at the end Mar 28, 2022
@JohnnyMorganz JohnnyMorganz added the bug Something isn't working label Mar 28, 2022
@ktrz
Copy link
Contributor Author

ktrz commented Mar 28, 2022

Hi @JohnnyMorganz
Thank you very much for fixing this issue so fast! Would it be possible to release a new version soon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants