Ricardo wrote:

> On Tuesday, December 15, 2009 12:19:37 PM UTC+1, Michael Tsang wrote:
> > diff -ur vim-7.2.245.orig/runtime/syntax/cpp.vim 
> > vim-7.2.245/runtime/syntax/cpp.vim
> > --- vim-7.2.245.orig/runtime/syntax/cpp.vim 2009-12-15 19:17:48.000000000 
> > +0800
> > +++ vim-7.2.245/runtime/syntax/cpp.vim      2009-12-15 19:18:04.000000000 
> > +0800
> > @@ -33,6 +33,14 @@
> >  syn keyword cppNumber              NPOS
> >  syn keyword cppBoolean             true false
> >  
> > +if !exists("cpp_no_cpp0x") " ISO C++0x
> > +  syn keyword cppOperator  alignof
> > +  syn keyword cppType              char16_t char32_t decltype
> > +  syn keyword cppStorageClass      constexpr thread_local
> > +  syn keyword cppConstant  nullptr
> > +  syn keyword cppStatement static_assert
> > +endif
> > +
> >  " The minimum and maximum operators in GNU C++
> >  syn match cppMinMax "[<>]?"
> >  
> > @@ -54,6 +62,7 @@
> >    HiLink cppStructure              Structure
> >    HiLink cppNumber         Number
> >    HiLink cppBoolean                Boolean
> > +  HiLink cppConstant               Constant
> >    delcommand HiLink
> >  endif
> 
> Sorry
> 
> On Tuesday, December 15, 2009 12:19:37 PM UTC+1, Michael Tsang wrote:
> > diff -ur vim-7.2.245.orig/runtime/syntax/cpp.vim 
> > vim-7.2.245/runtime/syntax/cpp.vim
> > --- vim-7.2.245.orig/runtime/syntax/cpp.vim 2009-12-15 19:17:48.000000000 
> > +0800
> > +++ vim-7.2.245/runtime/syntax/cpp.vim      2009-12-15 19:18:04.000000000 
> > +0800
> > @@ -33,6 +33,14 @@
> >  syn keyword cppNumber              NPOS
> >  syn keyword cppBoolean             true false
> >  
> > +if !exists("cpp_no_cpp0x") " ISO C++0x
> > +  syn keyword cppOperator  alignof
> > +  syn keyword cppType              char16_t char32_t decltype
> > +  syn keyword cppStorageClass      constexpr thread_local
> > +  syn keyword cppConstant  nullptr
> > +  syn keyword cppStatement static_assert
> > +endif
> > +
> >  " The minimum and maximum operators in GNU C++
> >  syn match cppMinMax "[<>]?"
> >  
> > @@ -54,6 +62,7 @@
> >    HiLink cppStructure              Structure
> >    HiLink cppNumber         Number
> >    HiLink cppBoolean                Boolean
> > +  HiLink cppConstant               Constant
> >    delcommand HiLink
> >  endif
> 
> Apologies for reviving such an old post, but this patch seems useful
> now that C++ 11 is on the streets and it was never applied. Seems like
> a small change no too much intrusive. Maybe the variable
> "cpp_no_cpp0x" should be renamed to "cpp_no_cpp11" but apart from
> that, seems nice.

The maintainer of the C++ file, Ken Shan, has not contacted us for
almost ten years. We need someone else to maintain this syntax file.

-- 
Now it is such a bizarrely improbable coincidence that anything as
mind-bogglingly useful as the Babel fish could have evolved purely by chance
that some thinkers have chosen to see it as a final and clinching proof of the
NON-existence of God.
The argument goes something like this: 'I refuse to prove that I exist,' says
God, 'for proof denies faith, and without faith I am nothing.'
'But,' says Man, 'the Babel fish is a dead giveaway, isn't it?  It could not
have evolved by chance.  It proves you exist, and so therefore, by your own
arguments, you don't.  QED.'
'Oh dear,' says God, 'I hadn't thought of that,' and promptly vanishes in a
puff of logic.
'Oh, that was easy,' says Man, and for an encore goes on to prove that black
is white and gets himself killed on the next pedestrian crossing.
                -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

 /// Bram Moolenaar -- [email protected] -- 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_dev" 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

Raspunde prin e-mail lui