0

In VIM, when editing .java files, I'm seeing the syntax highlighter being thrown off by the < and > characters inside of comment blocks.

It seems to expect me to close the <characters with a >.

Here's an example:

/**
 *  `<` <-- this character causes a syntax error
 */

Using VIM with Syntastic.

Any idea what's going on?

FreePender
  • 4,770
  • 2
  • 18
  • 15

1 Answers1

4

Javadoc comments use html for formatting. < is the start of a tag and it never ends so it is invalid html. You need to use &lt; instead.

FDinoff
  • 30,689
  • 5
  • 75
  • 96