File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,11 @@ syn match cNumbersCom display contained transparent "\<\d\|\.\d" contains=cNumbe
182
182
syn match cNumber display contained " \d\+\( u\= l\{ 0,2}\| ll\= u\)\> "
183
183
" hex number
184
184
syn match cNumber display contained " 0x\x\+\( u\= l\{ 0,2}\| ll\= u\)\> "
185
+ if s: ft == # ' cpp' && ! exists (" cpp_no_cpp14" )
186
+ syn match cNumber display contained " \d\( '\=\d\+\) *\( u\= l\{ 0,2}\| ll\= u\)\> "
187
+ syn match cNumber display contained " 0x\x\( '\=\x\+\) *\( u\= l\{ 0,2}\| ll\= u\)\> "
188
+ syn match cNumber display contained " 0b[01]\( '\= [01]\+\) *\( u\= l\{ 0,2}\| ll\= u\)\> "
189
+ endif
185
190
" Flag the first zero of an octal number as something special
186
191
syn match cOctal display contained " 0\o\+\( u\= l\{ 0,2}\| ll\= u\)\> " contains =cOctalZero
187
192
syn match cOctalZero display contained " \< 0"
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ syn keyword cppConstant __cplusplus
37
37
38
38
" C++ 11 extensions
39
39
if ! exists (" cpp_no_cpp11" )
40
- syn keyword cppModifier override final
40
+ syn keyword cppModifier override final auto
41
41
syn keyword cppType nullptr_t
42
42
syn keyword cppExceptions noexcept
43
43
syn keyword cppStorageClass constexpr decltype thread_local
You can’t perform that action at this time.
0 commit comments