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

rune fmt breaks multiline comments #684

Closed
SWW13 opened this issue Apr 3, 2024 · 0 comments
Closed

rune fmt breaks multiline comments #684

SWW13 opened this issue Apr 3, 2024 · 0 comments
Labels
bug Something isn't working fmt Issues related to formatting

Comments

@SWW13
Copy link
Contributor

SWW13 commented Apr 3, 2024

error.rn:

pub fn main() {
    /*
    test
    */
}
$ cargo install rune-cli --version 0.13.2
$ rune fmt error.rn
$ cat error.rn
pub fn main() {
/*
    test    *
}

I have experienced the issue of disappearing lines for a while now and just now triaged the source, so it may be related to the changes in #527 / #539.
I further tracked it down, it was already present in 0.13.0, the initial commit 802101c9 returned a parser error for the file:

$ cargo +1.74.0 run --bin rune -- fmt test.rn
!! error.rn: error while parsing source
0 unchanged
0 succeeded
1 failed
@udoprog udoprog added the bug Something isn't working label Apr 3, 2024
@udoprog udoprog added the fmt Issues related to formatting label Apr 16, 2024
@SWW13 SWW13 mentioned this issue Jun 13, 2024
@SWW13 SWW13 closed this as completed Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fmt Issues related to formatting
Projects
None yet
Development

No branches or pull requests

2 participants