diff --git a/syntax/cpp.vim b/syntax/cpp.vim index 6b62ff4..5fb9187 100644 --- a/syntax/cpp.vim +++ b/syntax/cpp.vim @@ -50,7 +50,7 @@ if !exists('cpp_no_cpp11') " Both `delete` and `default` are keywords which normally take precidence, " however if the match starts before the beginning of the keyword it will be " chosen instead so we can specialze for this case. - syn match cppStatement '=\s*\(delete\|default\)\ze\s*;\?' contains=cOperator display + syn match cppStatement '=\s*\(delete\|default\)\>\ze\s*;\?' contains=cOperator display endif " C++14