From 7e8ebd3673530e86802401db12ba0648798cf83c Mon Sep 17 00:00:00 2001 From: rhysd Date: Sun, 1 Mar 2015 02:47:51 +0900 Subject: [PATCH] Add binary literal highlight --- syntax/cpp.vim | 6 ++++++ 1 file changed, 6 insertions(+) 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