8000 separate cppModifier and cppType · dareg/vim-cpp@bc7fe9e · GitHub
[go: up one dir, main page]

Skip to content 10000

Commit bc7fe9e

Browse files
committed
separate cppModifier and cppType
1 parent e0d2e4e commit bc7fe9e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

syntax/cpp.vim

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ endif
2323
" C++ extensions
2424
syn keyword cppStatement new delete this friend using
2525
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
2728
syn keyword cppExceptions throw try catch
2829
syn keyword cppOperator operator typeid
2930
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
3637

3738
" C++ 11 extensions
3839
if !exists("cpp_no_cpp11")
39-
syn keyword cppType override final nullptr_t
40+
syn keyword cppModifier override final
41+
syn keyword cppType nullptr_t
4042
syn keyword cppExceptions noexcept
4143
syn keyword cppStorageClass constexpr decltype thread_local
4244
syn keyword cppConstant nullptr
@@ -70,6 +72,7 @@ if version >= 508 || !exists("did_cpp_syntax_inits")
7072
HiLink cppExceptions Exception
7173
HiLink cppOperator Operator
7274
HiLink cppStatement Statement
75+
HiLink cppModifier Type
7376
HiLink cppType Type
7477
HiLink cppStorageClass StorageClass
7578
HiLink cppStructure Structure

0 commit comments

Comments
 (0)
0