@@ -40,25 +40,25 @@ syn match gitcommitOverflow ".*" contained contains=@Spell
40
40
exec ' syn match gitcommitBlank "^[^' . s: comment_char . ' ].*" contained contains=@Spell'
41
41
exec ' syn match gitcommitComment "^[' . s: comment_char . ' ].*"'
42
42
exec ' syn match gitcommitHead "^\%([' . s: comment_char . ' ] .*\n\)\+[' . s: comment_char . ' ]$" contained transparent'
43
- exec ' syn match gitcommitOnBranch "\%( ^[' . s: comment_char . ' ] \)\@<=On branch" contained containedin=gitcommitComment nextgroup=gitcommitBranch skipwhite'
44
- exec ' syn match gitcommitOnBranch "\%( ^[' . s: comment_char . ' ] \)\@<=Your branch .\{-\} '' " contained containedin=gitcommitComment nextgroup=gitcommitBranch skipwhite'
43
+ exec ' syn match gitcommitOnBranch "^[' . s: comment_char . ' ] \zsOn branch" contained containedin=gitcommitComment nextgroup=gitcommitBranch skipwhite'
44
+ exec ' syn match gitcommitOnBranch "^[' . s: comment_char . ' ] \zsYour branch .\{-\} '' " contained containedin=gitcommitComment nextgroup=gitcommitBranch skipwhite'
45
45
syn match gitcommitBranch " [^ ']\+ " contained
46
- exec ' syn match gitcommitNoBranch "\%( ^[' . s: comment_char . ' ] \)\@<=Not currently on any branch." contained containedin=gitcommitComment'
47
- exec ' syn match gitcommitHeader "\%( ^[' . s: comment_char . ' ] \)\@<= .*:$" contained containedin=gitcommitComment'
48
- exec ' syn region gitcommitAuthor matchgroup=gitCommitHeader start=/\%( ^[' . s: comment_char . ' ] \)\@<= \%(Author\|Committer\):/ end=/$/ keepend oneline contained containedin=gitcommitComment transparent'
49
- exec ' syn match gitcommitNoChanges "\%( ^[' . s: comment_char . ' ] \)\@<=No changes$" contained containedin=gitcommitComment'
46
+ exec ' syn match gitcommitNoBranch "^[' . s: comment_char . ' ] \zsNot currently on any branch." contained containedin=gitcommitComment'
47
+ exec ' syn match gitcommitHeader "^[' . s: comment_char . ' ] \zs .*:$" contained containedin=gitcommitComment'
48
+ exec ' syn region gitcommitAuthor matchgroup=gitCommitHeader start=/^[' . s: comment_char . ' ] \zs \%(Author\|Committer\):/ end=/$/ keepend oneline contained containedin=gitcommitComment transparent'
49
+ exec ' syn match gitcommitNoChanges "^[' . s: comment_char . ' ] \zsNo changes$" contained containedin=gitcommitComment'
50
50
51
51
exec ' syn region gitcommitUntracked start=/^[' . s: comment_char . ' ] Untracked files:/ end=/^[' . s: comment_char . ' ]$\|^[' . s: comment_char . ' ]\@!/ contains=gitcommitHeader,gitcommitHead,gitcommitUntrackedFile fold'
52
- syn match gitcommitUntrackedFile " \t\@ <= .*" contained
52
+ syn match gitcommitUntrackedFile " \t\z s .*" contained
53
53
54
54
exec ' syn region gitcommitDiscarded start=/^[' . s: comment_char . ' ] Change\%(s not staged for commit\|d but not updated\):/ end=/^[' . s: comment_char . ' ]$\|^[' . s: comment_char . ' ]\@!/ contains=gitcommitHeader,gitcommitHead,gitcommitDiscardedType fold'
55
55
exec ' syn region gitcommitSelected start=/^[' . s: comment_char . ' ] Changes to be committed:/ end=/^[' . s: comment_char . ' ]$\|^[' . s: comment_char . ' ]\@!/ contains=gitcommitHeader,gitcommitHead,gitcommitSelectedType fold'
56
56
exec ' syn region gitcommitUnmerged start=/^[' . s: comment_char . ' ] Unmerged paths:/ end=/^[' . s: comment_char . ' ]$\|^[' . s: comment_char . ' ]\@!/ contains=gitcommitHeader,gitcommitHead,gitcommitUnmergedType fold'
57
57
58
58
59
- syn match gitcommitDiscardedType " \t\@ <= [[:lower:]][^:]*[[:lower:]]: " he =e - 2 contained containedin =gitcommitComment nextgroup =gitcommitDiscardedFile skipwhite
60
- syn match gitcommitSelectedType " \t\@ <= [[:lower:]][^:]*[[:lower:]]: " he =e - 2 contained containedin =gitcommitComment nextgroup =gitcommitSelectedFile skipwhite
61
- syn match gitcommitUnmergedType " \t\@ <= [[:lower:]][^:]*[[:lower:]]: " he =e - 2 contained containedin =gitcommitComment nextgroup =gitcommitUnmergedFile skipwhite
59
+ syn match gitcommitDiscardedType " \t\z s [[:lower:]][^:]*[[:lower:]]: " he =e - 2 contained containedin =gitcommitComment nextgroup =gitcommitDiscardedFile skipwhite
60
+ syn match gitcommitSelectedType " \t\z s [[:lower:]][^:]*[[:lower:]]: " he =e - 2 contained containedin =gitcommitComment nextgroup =gitcommitSelectedFile skipwhite
61
+ syn match gitcommitUnmergedType " \t\z s [[:lower:]][^:]*[[:lower:]]: " he =e - 2 contained containedin =gitcommitComment nextgroup =gitcommitUnmergedFile skipwhite
62
62
syn match gitcommitDiscardedFile " .\{ -\}\% ($\| -> \)\@ =" contained nextgroup =gitcommitDiscardedArrow
63
63
syn match gitcommitSelectedFile " .\{ -\}\% ($\| -> \)\@ =" contained nextgroup =gitcommitSelectedArrow
64
64
syn match gitcommitUnmergedFile " .\{ -\}\% ($\| -> \)\@ =" contained nextgroup =gitcommitSelectedArrow
0 commit comments