diff options
Diffstat (limited to 'syntax/cpp.vim')
-rw-r--r-- | syntax/cpp.vim | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/syntax/cpp.vim b/syntax/cpp.vim index f999fe7f..62dbe118 100644 --- a/syntax/cpp.vim +++ b/syntax/cpp.vim @@ -2,7 +2,7 @@ " Language: C++ " Current Maintainer: vim-jp (https://github.com/vim-jp/cpp-vim) " Previous Maintainer: Ken Shan <ccshan@post.harvard.edu> -" Last Change: 2012 Jun 14 +" Last Change: 2014 May 13 " For version 5.x: Clear all syntax items " For version 6.x: Quit when a syntax file was already loaded @@ -39,9 +39,7 @@ if !exists("cpp_no_cpp11") syn keyword cppExceptions noexcept syn keyword cppStorageClass constexpr decltype syn keyword cppConstant nullptr - " A C++11 raw-string literal. It tries to follow 2.14.5 and 2.14.5.2 of the - " standard. - syn region cppRawString matchgroup=cppRawDelim start=+\%(u8\=\|[LU]\)\=R"\z(\%([ ()\\\d9-\d12]\@![\d0-\d127]\)\{,16}\)(+ end=+)\z1"+ contains=@Spell + syn region cppRawString matchgroup=cppRawDelimiter start=+\%(u8\|[uLU]\)\=R"\z([[:alnum:]_{}[\]#<>%:;.?*\+\-/\^&|~!=,"']\{,16}\)(+ end=+)\z1"+ contains=@Spell endif " The minimum and maximum operators in GNU C++ @@ -65,7 +63,7 @@ if version >= 508 || !exists("did_cpp_syntax_inits") HiLink cppStructure Structure HiLink cppBoolean Boolean HiLink cppConstant Constant - HiLink cppRawDelim cFormat + HiLink cppRawDelimiter Delimiter HiLink cppRawString String delcommand HiLink endif |