From 4aaf92904e527aa3fd8ea057ce9fde8cfbbe15c8 Mon Sep 17 00:00:00 2001 From: Grzegorz Rozdzialik Date: Thu, 25 Mar 2021 18:16:03 +0100 Subject: [PATCH] Highlight only individual refs in Gstatus Stop highlighting comma separators and arrows in the list of refs shown in Gstatus. --- syntax/fugitive.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/syntax/fugitive.vim b/syntax/fugitive.vim index 49e79d64fb..43cf5c83cd 100644 --- a/syntax/fugitive.vim +++ b/syntax/fugitive.vim @@ -26,7 +26,8 @@ syn match fugitiveSymbolicRef /\.\@!\%(\.\.\@!\|[^[:space:][:cntrl:]\:.]\)\+\.\@ syn match fugitiveHash /^\x\{4,\}\S\@!/ contained containedin=@fugitiveSection nextgroup=fugitiveRefs skipwhite syn match fugitiveHash /\S\@/ contained syn region fugitiveHunk start=/^\%(@@\+ -\)\@=/ end=/^\%([A-Za-z?@]\|$\)\@=/ contains=@fugitiveDiff containedin=@fugitiveSection fold @@ -53,7 +54,7 @@ hi def link fugitiveStagedModifier Typedef hi def link fugitiveInstruction Type hi def link fugitiveStop Function hi def link fugitiveHash Identifier -hi def link fugitiveRefs Function +hi def link fugitiveRef Function hi def link fugitiveSymbolicRef Function hi def link fugitiveCount Number