I am using Vim to program in Java 8, and am having a problem with syntax highlighting.
A new feature in Java 8 is lambda support, which resulted in the creation of the arrow operator:
->. Vim does not recognize this as a valid operator in a *.java file. As such, it highlights this operator in bright red to draw attention to the "syntax error." (Of course, this really is valid syntax.)
Is there a way to update Vim's "dictionary" of allowed operators and/or fix the syntax highlighting to avoid this issue?
The first two lines of
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 2 2014 19:39:32)
Included patches: 1-52