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

Extra newlines are inserted around constants with dslx-fmt::off #1766

Open
dplassgit opened this issue Dec 4, 2024 · 1 comment
Open

Extra newlines are inserted around constants with dslx-fmt::off #1766

dplassgit opened this issue Dec 4, 2024 · 1 comment
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

To Reproduce

Try to format:

const foo = u32:42;
// dslx-fmt::off
const bar = u32:43;
const baz = u32:44;
// dslx-fmt::on
const qux = u32:45;

Expected behavior
Output=input

Actual behavior

const foo = u32:42;

// dslx-fmt::off
const bar = u32:43;
const baz = u32:44;
// dslx-fmt::on

const qux = u32:45;
@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 4, 2024
@dplassgit
Copy link
Collaborator Author

Also happens when there's only one const inside the disabled section.

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