From: Jeff King Date: Tue, 23 Jan 2007 03:21:15 +0000 (-0500) Subject: contrib/vim: update syntax for changed commit template X-Git-Tag: v1.5.0-rc3~77 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=222664e74dec10303bfa0c99e88f31563fdc6952;p=git.git contrib/vim: update syntax for changed commit template Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/contrib/vim/syntax/gitcommit.vim b/contrib/vim/syntax/gitcommit.vim index d911efbb4..332121b40 100644 --- a/contrib/vim/syntax/gitcommit.vim +++ b/contrib/vim/syntax/gitcommit.vim @@ -1,7 +1,7 @@ syn region gitLine start=/^#/ end=/$/ -syn region gitCommit start=/^# Added but not yet committed:$/ end=/^#$/ contains=gitHead,gitCommitFile +syn region gitCommit start=/^# Changes to be committed:$/ end=/^#$/ contains=gitHead,gitCommitFile syn region gitHead contained start=/^# (.*)/ end=/^#$/ -syn region gitChanged start=/^# Changed but not added:/ end=/^#$/ contains=gitHead,gitChangedFile +syn region gitChanged start=/^# Changed but not updated:/ end=/^#$/ contains=gitHead,gitChangedFile syn region gitUntracked start=/^# Untracked files:/ end=/^#$/ contains=gitHead,gitUntrackedFile syn match gitCommitFile contained /^#\t.*/hs=s+2