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

scala-mode-indent doesn't correctly indent function blocks. #3643

Closed
scabug opened this issue Jul 5, 2010 · 2 comments
Closed

scala-mode-indent doesn't correctly indent function blocks. #3643

scabug opened this issue Jul 5, 2010 · 2 comments

Comments

@scabug
Copy link

scabug commented Jul 5, 2010

Given the code:

foo({ (a : Int) =>
  val b = a+1
  b
})

scala-mode will indent the code as follows:

foo({ (a : Int) =>
  val b = a+1
     b
   })

The cause of the problem appears to be in scala-mode-indent.el:124. The condition (> block-after-spc block-start-eol) is false in this case, but the "then" block is the one that should be executed.

@scabug
Copy link
Author

scabug commented Jul 5, 2010

Imported From: https://issues.scala-lang.org/browse/SI-3643?orig=1
Reporter: Turing Eret (turing)

@scabug
Copy link
Author

scabug commented Jul 31, 2013

@SethTisue said:
the action on scala-mode is over at https://github.com/hvesalai/scala-mode2

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

No branches or pull requests

1 participant