Thursday, April 1, 2010

Re: java keyword syntax highlighting

On Thu, 1 Apr 2010, chardson wrote:

> I'm trying to figure out why there's a discrepancy between syntax
> highlighting between my two setups:
>
> · OS 10.6, MacVim 7.2 stable 1.2
> · Ubuntu 9.04, Vim 7.2.079
>
> A while ago I moved my .bashrc, .vimrc, and .vim/ to a git repository
> shared on both machines. They are both at the same version and I've
> ensured that none of the files are missing from the repository.

See the recent vim_use thread about Java syntax highlighting:

Why is "template" highlighted in Java code

(OT: Maybe you didn't find it because you topeka'ed it on AltaVista?)

If I'm not mistaken (big 'if' on this one), Ubuntu uses Debian for its
upstream sources, and it sounds like there was a Debian packaging error
that caused an odd version of syntax/java.vim to be included.

Workaround for that problem would be to explicitly add:

let java_allow_cpp_keywords=1
(or 0, according to preference)

(Though I thought the issue would only affect C++ keywords...
Maybe there are other differences in the mispackaged version?)

--
Best,
Ben

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

To unsubscribe, reply using "remove me" as the subject.

No comments:

Post a Comment