Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Case indentation persists after pattern match block ends #126

Open
nathantchan opened this issue May 12, 2016 · 1 comment
Open

Case indentation persists after pattern match block ends #126

nathantchan opened this issue May 12, 2016 · 1 comment

Comments

@nathantchan
Copy link

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
  ) 
} 
@derekwyatt
Copy link
Owner

Yeah this bugs me too but it's been a real pain to fix. A PR would be
extremely welcome ;)
On Thu, May 12, 2016 at 11:52 AM nathantchan [email protected]
wrote:

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
)
}


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#126

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

No branches or pull requests

2 participants