FreePender
FreePender

Reputation: 4879

VIM with Syntastic: Why is VIM's JAVA syntax highlighting thrown off by `<` and `>` in a comment block?

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?

Upvotes: 0

Views: 496

Answers (1)

FDinoff
FDinoff

Reputation: 31429

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.

Upvotes: 4

Related Questions