fprettify icon indicating copy to clipboard operation
fprettify copied to clipboard

allow named select case

Open dbroemmel opened this issue 1 year ago • 0 comments

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 avatar Jul 03 '23 14:07 dbroemmel