Skip to content

Commit

Permalink
Don't highlight merge conflict as subject
Browse files Browse the repository at this point in the history
This fixes the highlighting of `git status` as file type gitcommit
during a merge conflict.
  • Loading branch information
tpope committed Oct 18, 2009
1 parent 5184ea5 commit 24d0f11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions syntax/gitcommit.vim
Expand Up @@ -43,6 +43,10 @@ syn match gitcommitSelectedFile ".\{-\}\%($\| -> \)\@=" contained nextgroup=gi
syn match gitcommitDiscardedArrow " -> " contained nextgroup=gitcommitDiscardedFile
syn match gitcommitSelectedArrow " -> " contained nextgroup=gitcommitSelectedFile

syn match gitcommitBegin "\%^" nextgroup=gitcommitWarning,gitcommitSummary
syn match gitcommitWarning "^[^#].*: needs merge$" nextgroup=gitcommitWarning skipnl contained
syn match gitcommitWarning "^no changes added to commit\>.*\%$"

hi def link gitcommitSummary Keyword
hi def link gitcommitComment Comment
hi def link gitcommitUntracked gitcommitComment
Expand Down

0 comments on commit 24d0f11

Please sign in to comment.