Your message dated Thu, 25 Mar 2010 14:08:59 -0400
with message-id <[email protected]>
and subject line Re: Bug#575417: Vim highlights C++ keywords in Java code
has caused the Debian Bug report #575417,
regarding Vim highlights C++ keywords in Java code
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
575417: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=575417
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: vim-common
Version: 2:7.2.330-1
When you enter C++ keywords in java code, such as "template", vim
highlights them as syntax errors.
The default behavior of vim is not to do this. The Debian version of
vim does so. However, this doesn't appear to have been the result of a
deliberate choice, because the "original" source used while building
the vim-common package is not identical to the actual vim source.
Here's the relevant text from the java.vim file in vim 7.1:
if !exists("java_allow_cpp_keywords")
syn keyword javaError auto delete extern friend inline redeclared
syn keyword javaError register signed sizeof struct template typedef union
syn keyword javaError unsigned operator
endif
And in vim 7.2:
if !exists("java_allow_cpp_keywords")
" The default used to be to highlight C++ keywords. But several people
" don't like that, so default to not highlighting these.
let java_allow_cpp_keywords = 1
endif
if !java_allow_cpp_keywords
syn keyword javaError auto delete extern friend inline redeclared
syn keyword javaError register signed sizeof struct template typedef union
syn keyword javaError unsigned operator
endif
The Debian "orig" java.vim file for vim-common 2:7.2.330-1 is the same
as the one from vim 7.1 (for this snippet of text only). This is not
the result of a patch - the source used is simply not the correct
source.
--
Joshua Swink
[email protected]
--- End Message ---
--- Begin Message ---
On Thu, Mar 25, 2010 at 1:24 PM, Joshua Swink <[email protected]> wrote:
> And in vim 7.2:
>
> if !exists("java_allow_cpp_keywords")
> " The default used to be to highlight C++ keywords. But several people
> " don't like that, so default to not highlighting these.
> let java_allow_cpp_keywords = 1
> endif
This appears nowhere in Debian's syntax/java.vim. You can verify this
by looking at the git repo[0] or by downloading the source package[1]
yourself. This also doesn't appear in upstream Vim's source, in either
7.1[2] or the current trunk[3].
[0]:
http://git.debian.org/?p=pkg-vim/vim.git;a=blob;f=runtime/syntax/java.vim;h=18e4532d289c0a4ccf69b630f1cec98c72898b80;hb=911bf8e23efca783f709d50542a34843dbdd8b69
[1]: apt-get source vim
[2]:
http://code.google.com/p/vim/source/browse/runtime/syntax/java.vim?spec=svn463e25d28b334622df784faea456a98ddbc0b5ce&r=463e25d28b334622df784faea456a98ddbc0b5ce
[3]: http://code.google.com/p/vim/source/browse/runtime/syntax/java.vim
> if !java_allow_cpp_keywords
> syn keyword javaError auto delete extern friend inline redeclared
> syn keyword javaError register signed sizeof struct template typedef union
> syn keyword javaError unsigned operator
> endif
>
> The Debian "orig" java.vim file for vim-common 2:7.2.330-1 is the same
> as the one from vim 7.1 (for this snippet of text only). This is not
> the result of a patch - the source used is simply not the correct
> source.
We use exactly what comes from upstream Vim for syntax/java.vim. If you
have something else in /usr/share/vim/vim72/syntax/java.vim then it is
something that an admin on your system placed there.
--
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>
--- End Message ---