2
2
" Language: C++
3
3
" Current Maintainer: vim-jp (https://github.com/vim-jp/vim-cpp)
4
4
" Previous Maintainer: Ken Shan <ccshan@post.harvard.edu>
5
- " Last Change: 2015 May 04
5
+ " Last Change: 2015 Nov 10
6
6
7
7
" For version 5.x: Clear all syntax items
8
8
" For version 6.x: Quit when a syntax file was already loaded
23
23
" C++ extensions
24
24
syn keyword cppStatement new delete this friend using
25
25
syn keyword cppAccess public protected private
26
- syn keyword cppType inline virtual explicit export bool wchar_t
26
+ syn keyword cppModifier inline virtual explicit export
27
+ syn keyword cppType bool wchar_t
27
28
syn keyword cppExceptions throw try catch
28
29
syn keyword cppOperator operator typeid
29
30
syn keyword cppOperator and bitor or xor compl bitand and_eq or_eq xor_eq not not_eq
@@ -36,7 +37,8 @@ syn keyword cppConstant __cplusplus
36
37
37
38
" C++ 11 extensions
38
39
if ! exists (" cpp_no_cpp11" )
39
- syn keyword cppType override final
40
+ syn keyword cppModifier override final
41
+ syn keyword cppType nullptr_t
40
42
syn keyword cppExceptions noexcept
41
43
syn keyword cppStorageClass constexpr decltype thread_local
42
44
syn keyword cppConstant nullptr
@@ -49,6 +51,11 @@ if !exists("cpp_no_cpp11")
49
51
syn region cppRawString matchgroup =cppRawStringDelimiter start =+ \% (u8\| [uLU]\)\= R"\z ([[:alnum:]_{}[\] #<>%:;.?*\+\- /\^ &|~!=,"']\{ ,16}\) (+ end=+)\z 1"+ contains=@Spell
50
52
endif
51
53
54
+ " C++ 14 extensions
55
+ if ! exists (" cpp_no_cpp14" )
56
+ syn match cppNumber display " \< 0b[01]\+\( u\= l\{ 0,2}\| ll\= u\)\> "
57
+ endif
58
+
52
59
" The minimum and maximum operators in GNU C++
53
60
syn match cppMinMax " [<>]?"
67AF
span>
54
61
@@ -65,6 +72,7 @@ if version >= 508 || !exists("did_cpp_syntax_inits")
65
72
HiLink cppExceptions Exception
66
73
HiLink cppOperator Operator
67
74
HiLink cppStatement Statement
75
+ HiLink cppModifier Type
68
76
HiLink cppType Type
69
77
HiLink cppStorageClass StorageClass
70
78
HiLink cppStructure Structure
0 commit comments