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

allow named select case #152

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dbroemmel
Copy link
Contributor

@dbroemmel dbroemmel commented Jul 3, 2023

I've come across misalignments when select case blocks included a name: with them, e.g.

case_label: select case (r)
case (1) case_label
   <code>
case (2) case_label
   <more code>
end select case case_label

Currently fprettify would not recognise those and not indent <code> or <more code>.

I've expanded what I guessed needs expanding and amended a single, simple test within example.f90. I've not checked other select statements apart from select case. The checksum is also updated accordingly.

@dbroemmel dbroemmel marked this pull request as ready for review July 3, 2023 14:39
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.

1 participant