derekwyatt/vim-scala

Highlighting issue related to annotations

Opened this issue · 0 comments

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