diff --git a/syntax/cpp.vim b/syntax/cpp.vim index a92d4ea..59da1cf 100644 --- a/syntax/cpp.vim +++ b/syntax/cpp.vim @@ -42,6 +42,11 @@ if !exists("cpp_no_cpp11") syn region cppRawString matchgroup=cppRawDelimiter start=+\%(u8\|[uLU]\)\=R"\z([[:alnum:]_{}[\]#<>%:;.?*\+\-/\^&|~!=,"']\{,16}\)(+ end=+)\z1"+ contains=@Spell endif +" C++ 14 extensions +if !exists("cpp_no_cpp14") + syn match cppNumber display "\<0b[01]\+\(u\=l\{0,2}\|ll\=u\)\>" +endif + " The minimum and maximum operators in GNU C++ syn match cppMinMax "[<>]?" @@ -65,6 +70,7 @@ if version >= 508 || !exists("did_cpp_syntax_inits") HiLink cppConstant Constant HiLink cppRawDelimiter Delimiter HiLink cppRawString String + HiLink cppNumber Number delcommand HiLink endif