fortran-lang / fprettify

auto-formatter for modern fortran source code
https://pypi.python.org/pypi/fprettify
Other
368 stars 73 forks source link

allow named select case #152

Open dbroemmel opened 1 year ago

dbroemmel commented 1 year ago

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.