From 8355c9e5710fbb6f854a36c930f7f2d6bda6c245 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sun, 22 Jan 2017 09:26:17 -0800 Subject: [PATCH] Match operator on word boundary only --- syntax/cpp.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/cpp.vim b/syntax/cpp.vim index 202f13e..f5ce902 100644 --- a/syntax/cpp.vim +++ b/syntax/cpp.vim @@ -88,7 +88,7 @@ if !exists('cpp_no_operators') && !exists('cpp_no_delimiters') " ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ " operator new operator delete operator new[] operator delete[] " ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ - syn match cppOperator 'operator\s*\(\/\|<<\|>>\|<\|>\|\(new\|delete\)\?\s*\[\s*\]\)\?' display + syn match cppOperator '\\s*\(\/\|<<\|>>\|<\|>\|\(new\|delete\)\?\s*\[\s*\]\)\?' display endif " Default highlighting