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

An extra newline is unexpectedly inserted after a dslx-fmt::on comment #1782

Open
dplassgit opened this issue Dec 10, 2024 · 0 comments
Open
Labels
bug Something isn't working or is incorrect dslx:fmt DSLX auto-formatter dslx DSLX (domain specific language) implementation / front-end

Comments

@dplassgit
Copy link
Collaborator

Format:

import thing1;
import thing2;

fn f() -> (u32, u16) {
    let y = u16:64;

    // dslx-fmt::off
let y = u16:64;
let x = 
  u32:41;
         (x ,   y)

          // dslx-fmt::on

}

inserts the extra newline after the ::on.

@dplassgit dplassgit added bug Something isn't working or is incorrect dslx DSLX (domain specific language) implementation / front-end dslx:fmt DSLX auto-formatter labels Dec 10, 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 or is incorrect dslx:fmt DSLX auto-formatter dslx DSLX (domain specific language) implementation / front-end
Projects
Status: No status
Development

No branches or pull requests

1 participant