Comment highlighted as error

Firstly: Scala development in IDEA with the Scala plugin is excellent!  I'm using it for a large multi-module project and it mostly 'just works'.  Very nice work.

I've found a couple of weird cases with the error highlighting, though.  
Here's a simple example where it thinks a comment is a syntax error:

class IDEAHighlight1 {
  def comments: Unit = {
    Some("foo")
      .map { _.toString } // comment here is fine
      .map { _.length }
      // comment here seen as syntax error
      .map { _ + 3 }
  }
}


Screenshot attached.

Details:
- IntelliJ IDEA 10.0.1 Community, Build #IC-99.32, 23-Dec-2010
- Scala plugin: 0.4.345


Attachment(s):
Menu_047.png
0
7 comments

I've lodged a separate bug.

http://youtrack.jetbrains.net/issue/SCL-2669

Thanks for the report.

-jason

0

Thanks, Jason.  Appreciate it.

0

This is hacked now. Still not work with /**/ comments. But your cases is ok now.
I'm planning to fix such problems in general way, but this way needs more time.

Best regards,
Alexander Podkhalyuzin.

0

Thanks, Alexander!
Are there nightly or experimental builds that I could try out?


Mark

0

Verified that this is working in 0.4.428.  Thanks for the quick fix.

0

Please sign in to leave a comment.