Skip to content

Commit

Permalink
Add binary literal highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Mar 2, 2015
1 parent 30e3184 commit 7e8ebd3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions syntax/cpp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[<>]?"

Expand All @@ -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

Expand Down

0 comments on commit 7e8ebd3

Please sign in to comment.