Indent not working properly after regex extractors
See below:
I suspect it gets confused by the parentheses () on the lhs.
Thanks,
Tony
import scala.util.matching.Regex
object DemoRegex extends App {
val yearExt = """CAL(\d{2})""".r
val yearExt(year) = "CAL12"
// after hitting ENTER on previous line the cursor is not aligned properly
// it is not under v
val yearExt(year2) = {"CAL12"}
// now cursor is aligned properly!
// it is under v!
}
I suspect it gets confused by the parentheses () on the lhs.
Thanks,
Tony
Leave a comment
on 2013-04-04 19:48 *
By Simon Schäfer
Component changed from Code Formatter to Editor
Description changed from See below:
import scala.ut... to See below:
imp...
on 2013-05-08 10:03 *
By Iulian Dragos
It's much simpler, it's enough to have a string literal:
val x = "abc"
// indented