From cc63193ce82c1e7b9ee2ad7d0ddd14e8394211ef Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 1 Mar 2021 13:44:50 +0100 Subject: Update --- syntax/cpp.vim | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'syntax/cpp.vim') diff --git a/syntax/cpp.vim b/syntax/cpp.vim index 0fd0acc2..a31f3416 100644 --- a/syntax/cpp.vim +++ b/syntax/cpp.vim @@ -6,13 +6,16 @@ endif " Language: C++ " Current Maintainer: vim-jp (https://github.com/vim-jp/vim-cpp) " Previous Maintainer: Ken Shan -" Last Change: 2017 Jun 05 +" Last Change: 2021 Jan 12 " quit when a syntax file was already loaded if exists("b:current_syntax") finish endif +" inform C syntax that the file was included from cpp.vim +let b:filetype_in_cpp_family = 1 + " Read the C syntax to start with runtime! syntax/c.vim unlet b:current_syntax @@ -59,12 +62,6 @@ if !exists("cpp_no_cpp14") syn case match endif -" C++ 17 extensions -if !exists("cpp_no_cpp17") - syn match cppCast "\]?" -- cgit v1.2.3