Skip to content

Labeled case statements not formatted correctly #175

Open
@sriram-LANL

Description

@sriram-LANL

the following input:

  ! Fails: Labelled
  casetest:select case(i)
  case (1)
     write(*,*) 'nay'
  end select casetest

  ! Works: Not labelled
  select case(i)
  case (1)
     write(*,*) 'yay'
  end select

processed with python3 fprettify -i 4 test.F90 results in:

  ! Fails: Labelled
  casetest:select case(i)
  case (1)
  write (*, *) 'nay'
  end select casetest

  ! Works: Not labelled
  select case (i)
  case (1)
      write (*, *) 'yay'
  end select

Note that the first case statement is not correctly indented.

Incidentally labelled do statements work just fine!

PS: this is a great tool - thanks for making it available

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions