Skip to content

Commit a36fc80

Browse files
committed
Sync upstream
1 parent 0b1a506 commit a36fc80

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

syntax/cpp.vim

Lines changed: 7 additions & 7 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 <[email protected]>
5-
" Last Change: 2017 Jun 05
5+
" Last Change: 2021 Jan 12
66

77
" quit when a syntax file was already loaded
88
if exists("b:current_syntax")
@@ -58,12 +58,6 @@ if !exists("cpp_no_cpp14")
5858
syn case match
5959
endif
6060

61-
" C++ 17 extensions
62-
if !exists("cpp_no_cpp17")
63-
syn match cppCast "\<reinterpret_pointer_cast\s*<"me=e-1
64-
syn match cppCast "\<reinterpret_pointer_cast\s*$"
65-
endif
66-
6761
" C++ 20 extensions
6862
if !exists("cpp_no_cpp20")
6963
syn keyword cppStatement co_await co_return co_yield requires
@@ -73,6 +67,12 @@ if !exists("cpp_no_cpp20")
7367
syn keyword cppModule import module export
7468
endif
7569

70+
" C++ 17 extensions
71+
if !exists("cpp_no_cpp17")
72+
syn match cppCast "\<reinterpret_pointer_cast\s*<"me=e-1
73+
syn match cppCast "\<reinterpret_pointer_cast\s*$"
74+
endif
75+
7676
" The minimum and maximum operators in GNU C++
7777
syn match cppMinMax "[<>]?"
7878

0 commit comments

Comments
 (0)