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

Improve verus macro collapsing #39

Merged
merged 3 commits into from
Feb 29, 2024
Merged

Conversation

jaybosamiya
Copy link
Collaborator

This PR improves verus!{...} macro collapsing, improving indentation of the line immediately following it.

In particular, if the verus!{} itself is indented, then the following line was getting moved to the leftmost side (for example, line 37 of the snapshot test examples/atomic.rs added in this PR). We fix this by indenting it the same amount as where the verus!{} itself got indented (or in case of an ending block, then we de-dent it once).

Slightly special handling was necessary because of NR's usage of vstd::prelude::verus!{ ... } rather than verus!{}

@jaybosamiya jaybosamiya merged commit 0c0eb35 into main Feb 29, 2024
8 checks passed
@jaybosamiya jaybosamiya deleted the improve-verus-macro-collapsing branch February 29, 2024 18:18
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

Successfully merging this pull request may close these issues.

None yet

2 participants