> On Dec 29, 2011, at 10:21 AM, Tony Mechelynck wrote:
> 
> >> 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
> > 
> > so the default is to have all those highlighted as error; define that variable (with any value) to remove that highlight.
> 
> oh wow, would you look at that! so by default since
> "java_allow_cpp_keywords" isn't defined it shows me false errors.
Since there are many Java programmers now and much fewer C++
programmers, let's remove this highlighting.  It wasn't very helpful
anyway, you can't write code that works both on Java and C++.
And making mistakes is easily detected by the compiler.
-- 
There are three kinds of people: Those who can count & those who can't.
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
-- 
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
 
No comments:
Post a Comment