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

Disabling formatting within a proc sometimes silently does not disable formatting #1797

Open
dplassgit opened this issue Dec 16, 2024 · 0 comments
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

This:

proc p {
    config() {  }

    init {  }

    // dslx-fmt::off
    next(
state: ()) { () }
    // dslx-fmt::on
}

will get formatted to:

proc p {
    config() {  }

    init {  }

    // dslx-fmt::off
    next(state: ()) { () }
    // dslx-fmt::on
}

even though there was a request to disable formatting around the next method.

(Analysis; this happens due to the "ignore desugared functions" code added in c6c8197)

@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 16, 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