Skip to content

allow named select case #152

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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.

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

Successfully merging this pull request may close these issues.

1 participant