Skip to content

Commit 4aaf929

Browse files
committed
Highlight only individual refs in Gstatus
Stop highlighting comma separators and arrows in the list of refs shown in Gstatus.
1 parent 368ea85 commit 4aaf929

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

syntax/fugitive.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ syn match fugitiveSymbolicRef /\.\@!\%(\.\.\@!\|[^[:space:][:cntrl:]\:.]\)\+\.\@
2626
syn match fugitiveHash /^\x\{4,\}\S\@!/ contained containedin=@fugitiveSection nextgroup=fugitiveRefs skipwhite
2727
syn match fugitiveHash /\S\@<!\x\{4,\}\S\@!/ contained
2828
syn match fugitiveRefs '()' contained conceal
29-
syn match fugitiveRefs /([^)]\+)/hs=s+1,he=e-1 contained
29+
syn match fugitiveRefs /([^)]\+)/hs=s+1,he=e-1 contained contains=fugitiveRef
30+
syn match fugitiveRef /\<[^[:space:][:cntrl:]]\+\>/ contained
3031

3132
syn region fugitiveHunk start=/^\%(@@\+ -\)\@=/ end=/^\%([A-Za-z?@]\|$\)\@=/ contains=@fugitiveDiff containedin=@fugitiveSection fold
3233

@@ -53,7 +54,7 @@ hi def link fugitiveStagedModifier Typedef
5354
hi def link fugitiveInstruction Type
5455
hi def link fugitiveStop Function
5556
hi def link fugitiveHash Identifier
56-
hi def link fugitiveRefs Function
57+
hi def link fugitiveRef Function
5758
hi def link fugitiveSymbolicRef Function
5859
hi def link fugitiveCount Number
5960

0 commit comments

Comments
 (0)