8000 update upstream · reaalkhalil/vim-cpp@e666843 · GitHub
[go: up one dir, main page]

Skip to content

Commit e666843

Browse files
committed
update upstream
1 parent 544ea97 commit e666843

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

syntax/cpp.vim

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" Language: C++
33
" Current Maintainer: vim-jp (https://github.com/vim-jp/vim-cpp)
44
" Previous Maintainer: Ken Shan <ccshan@post.harvard.edu>
5-
" Last Change: 2015 May 04
5+
" Last Change: 2015 Nov 10
66

77
" For version 5.x: Clear all syntax items
88
" For version 6.x: Quit when a syntax file was already loaded
@@ -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
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
@@ -49,6 +51,11 @@ if !exists("cpp_no_cpp11")
4951
syn region cppRawString matchgroup=cppRawStringDelimiter start=+\%(u8\|[uLU]\)\=R"\z([[:alnum:]_{}[\]#<>%:;.?*\+\-/\^&|~!=,"']\{,16}\)(+ end=+)\z1"+ contains=@Spell
5052
endif
5153

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+
5259
" The minimum and maximum operators in GNU C++
5360
syn match cppMinMax "[<>]?"
5461

@@ -65,6 +72,7 @@ if version >= 508 || !exists("did_cpp_syntax_inits")
6572
HiLink cppExceptions Exception
6673
HiLink cppOperator Operator
6774
HiLink cppStatement Statement
75+
HiLink cppModifier Type
6876
HiLink cppType Type
6977
HiLink cppStorageClass StorageClass
7078
HiLink cppStructure Structure

0 commit comments

Comments
 (0)
0