val not recognized within case/match
Hi
This is with IDEA 9902, Scala plugin 0.2.25446 (latest).
The following script compiles and runs within IDEA, but within the editor, in "case myRE", the "myRE" is marked red as "unrecognized".
val myRE = """x=([^,]+)""".r
val someX = List(
"x=dat1",
"x=dat2",
"x=dat3"
)
for (item <- someX) {
item match {
case myRE(anX) =>
println("x was " + anX)
case other => println("Unrecognized entry: " + other)
}
}
Thanks
Patrick
Please sign in to leave a comment.
Filed http://www.jetbrains.net/jira/browse/SCL-1316