Skip to content

Case indentation persists after pattern match block ends #126

@nathantchan

Description

@nathantchan

It seems like the indenter does not recognize when a match expression closes, and so case classes declared afterward are indented to the same level as the case statements in the match block:

object Hello {

foo match {
  case "bar" => true
  case _ => false
}   

  case class Goodbye(
    flag: Boolean
  ) 
} 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions