From e4cd16ff5bf9623667e9d3e47a3c4baa00ab26f5 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sun, 4 Sep 2016 23:24:45 +0100 Subject: [PATCH] Specialize << and >> highlight matches --- after/syntax/cpp.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/after/syntax/cpp.vim b/after/syntax/cpp.vim index 3fb9b77..b501654 100644 --- a/after/syntax/cpp.vim +++ b/after/syntax/cpp.vim @@ -18,7 +18,7 @@ syn match cppOperator '\(\s\zs\/\s\ze\|\s\zs<\s\ze\|\s\zs>\s\ze\)' syn match cppStorageClass '\w[A-Za-z0-9_]*\ze::' " " Match multi character operators, override cppDelimiter matches for < > " " ^ ^ -syn match cppOperator '\(<<\|>>\|>>=\|<<=\|<=\|>=\|->\*\|->\)' +syn match cppOperator '\(<<\ze\s\|\s\zs>>\|>>=\|<<=\|<=\|>=\|->\*\|->\)' " Define additional highlight groups hi default link cppDelimiter Delimiter