Java 10 `var` context-sensitive keyword

Issue #1397 new
Tudor Brinedus
created an issue

Java 10 is just 4 months away from a public release, and one of the new features is the addition of a var context-sensitive keyword (JEP 286).

I suppose the ideal scenario would be highlighting it only when it is used as a variable type and not as a name, but any highlighting is better than none.

Comments (2)

  1. Phillip Johnson

    If it matters, var is actually a type declaration not a reserved keyword. So var var = 1; is valid Java.

    Also, Java 10 has been out for a few months so any update would be great. Thanks!

  2. Log in to comment