8000 Add binary literal highlight · ChaiScript/vim-cpp@7e8ebd3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7e8ebd3

Browse files
committed
Add binary literal highlight
1 parent 30e3184 commit 7e8ebd3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

syntax/cpp.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ if !exists("cpp_no_cpp11")
4242
syn region cppRawString matchgroup=cppRawDelimiter start=+\%(u8\|[uLU]\)\=R"\z([[:alnum:]_{}[\]#<>%:;.?*\+\-/\^&|~!=,"']\{,16}\)(+ end=+)\z1"+ contains=@Spell
4343
endif
4444

45+
" C++ 14 extensions
46+
if !exists("cpp_no_cpp14")
47+
syn match cppNumber display "\<0b[01]\+\(u\=l\{0,2}\|ll\=u\)\>"
48+
endif
49+
4550
" The minimum and maximum operators in GNU C++
4651
syn match cppMinMax "[<>]?"
4752

@@ -65,6 +70,7 @@ if version >= 508 || !exists("did_cpp_syntax_inits")
6570
HiLink cppConstant Constant
6671
HiLink cppRawDelimiter Delimiter
6772
HiLink cppRawString String
73+
HiLink cppNumber Number
6874
delcommand HiLink
6975
endif
7076

0 commit comments

Comments
 (0)
0