Thursday, December 29, 2011

Re: weird highlighting when i edit java code

Rian Hunter, Thu 2011-12-29 @ 12:29:05-0800:
> does vim do this for all languages similar to the currently edited
> language by default?

No, it doesn't. The Java/C++ case is the only one in which I've seen
this behavior. Maybe there are others lurking in $VIMRUNTIME/syntax, but
I haven't encountered them.

That's what makes it so weird. It just seems completely arbitrary that,
just for this specific combination of languages, the syntax would try to
be more "helpful" than usual, especially when only a vanishingly tiny
portion of users is likely to consider this feature helpful.

But at least it's easy to disable. :)

No comments: