From 61599e0b053a8d90a62530b56a838bb4f9d39806 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Fri, 5 Oct 2018 17:59:15 +0100 Subject: [PATCH] Disable experimental C++ syntax highlighting --- syntax/cpp.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/syntax/cpp.vim b/syntax/cpp.vim index 23feecd..882c100 100644 --- a/syntax/cpp.vim +++ b/syntax/cpp.vim @@ -71,8 +71,9 @@ if !exists('cpp_no_cpp14') endif " C++17 -if !exists('cpp_no_cpp17') +if exists('cpp_experimental') && !exists('cpp_no_cpp17') " Attribute Specifier Sequence + " FIXME: This matches range-for and switch case statements " Match: [[using attribute-namespace: attribute-list]] syn match cppAttributeUsingNamespace '\s\+\zs\w\+\ze\s*:' contained contains=cppAttributeUsing syn keyword cppAttributeUsing using contained @@ -86,7 +87,7 @@ if !exists('cpp_no_cpp17') endif " C++20 -if !exists('cpp_no_cpp20') +if exists('cpp_experimental') && !exists('cpp_no_cpp20') syn keyword cppStatement concept requires " TODO: Attribute Specifier Sequence