mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 04:53:45 -05:00
Don't assume unrecognized status headers are refs
Every time I experiment with adding a new header this burns me.
This commit is contained in:
@@ -7,8 +7,9 @@ syn spell notoplevel
|
|||||||
|
|
||||||
syn include @fugitiveDiff syntax/diff.vim
|
syn include @fugitiveDiff syntax/diff.vim
|
||||||
|
|
||||||
syn match fugitiveHeader /^[A-Z][a-z][^:]*:/ nextgroup=fugitiveHash,fugitiveSymbolicRef skipwhite
|
syn match fugitiveHeader /^[A-Z][a-z][^:]*:/
|
||||||
syn match fugitiveHeader /^Bare:\|^Warning:\|^Error:/
|
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 fugitiveHelpHeader /^Help:/ nextgroup=fugitiveHelpTag skipwhite
|
||||||
syn match fugitiveHelpTag /\S\+/ contained
|
syn match fugitiveHelpTag /\S\+/ contained
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user