-
Notifications
You must be signed in to change notification settings - Fork 13
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
indentation of case with dafny-mode in emacs #9
Comments
Correct. It's tricky to detect these statements; the usual convention is to write them in any of the following forms:
The idea being that single-line bodies should either get braces, or be on the same line as the case. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I write a sequence of case statements, my expectation is that
Tab
to re-indent dafny code would line up allcase
occurrences vertically with the same number of space characters from the left of each line. However, eachcase
is lined up with the statements inside of thecase
above:The text was updated successfully, but these errors were encountered: