vim-scala icon indicating copy to clipboard operation
vim-scala copied to clipboard

Highlighting issue related to annotations

Open leeavital opened this issue 11 years ago • 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

leeavital avatar Oct 29 '14 17:10 leeavital