derekwyatt / vim-scala

My work on integration of Scala into Vim - not a ton here, but useful for me.
http://derekwyatt.org
Apache License 2.0
1.09k stars 144 forks source link

Highlighting issue related to annotations #76

Open leeavital opened 10 years ago

leeavital commented 10 years ago

In the following code, everything inside the respond function is highlighted as a string.

object Foo {
  @Get
  @Route(Array("/{:Version}/path_to"))
  def respond(r: Req) = {
    println("Hello world")
  }
}

However, if you remove the outer object, it highlights correctly.

@Get
  @Route(Array("/{:Version}/path_to"))
  def respond(r: Req) = {
    println("Hello world")
  }

This seems to happen with classes, objects, traits, outer functions -- basically any curly-brace block.

Screenshots:

screen shot 2014-10-29 at 10 31 58 am screen shot 2014-10-29 at 10 32 12 am