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

Formatting of multi-line seq! macro #42

Closed
mmcloughlin opened this issue Mar 13, 2024 · 1 comment
Closed

Formatting of multi-line seq! macro #42

mmcloughlin opened this issue Mar 13, 2024 · 1 comment

Comments

@mmcloughlin
Copy link

verusfmt 0.2.8 formats:

use vstd::prelude::*;

verus! {

proof fn f() {
    let s =
        seq![
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    ];
}

} // verus!

This occurs with two lines or more. With only one you get:

proof fn f() {
    let s = seq![
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    ];
}
@parno
Copy link
Contributor

parno commented Mar 13, 2024

Indeed, verusfmt support for macro invocations is rather limited at present, unfortunately. However, our current policy is that requests/suggestions for formatting improvements are best handled through PRs, which are most welcome. We're trying to reserve GitHub Issues for functional bugs, so I'll close this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants