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.


Best regards

-- 
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