From 7412370dc87847a8d054744dbb9e6058994e2df2 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 10 Jul 2021 17:56:29 -0400 Subject: [PATCH] Don't assume unrecognized status headers are refs Every time I experiment with adding a new header this burns me. --- syntax/fugitive.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/syntax/fugitive.vim b/syntax/fugitive.vim index 220c419..0ed82dd 100644 --- a/syntax/fugitive.vim +++ b/syntax/fugitive.vim @@ -7,8 +7,9 @@ syn spell notoplevel syn include @fugitiveDiff syntax/diff.vim -syn match fugitiveHeader /^[A-Z][a-z][^:]*:/ nextgroup=fugitiveHash,fugitiveSymbolicRef skipwhite -syn match fugitiveHeader /^Bare:\|^Warning:\|^Error:/ +syn match fugitiveHeader /^[A-Z][a-z][^:]*:/ +syn match fugitiveHeader /^Head:/ nextgroup=fugitiveHash,fugitiveSymbolicRef skipwhite +syn match fugitiveHeader /^Pull:\|^Rebase:\|^Merge:\|^Push:/ nextgroup=fugitiveSymbolicRef skipwhite syn match fugitiveHelpHeader /^Help:/ nextgroup=fugitiveHelpTag skipwhite syn match fugitiveHelpTag /\S\+/ contained