1syn region gitLine start=/^#/ end=/$/ 2syn region gitCommit start=/^# Added but not yet committed:$/ end=/^#$/ contains=gitHead,gitCommitFile 3syn region gitHead contained start=/^# (.*)/ end=/^#$/ 4syn region gitChanged start=/^# Changed but not added:/ end=/^#$/ contains=gitHead,gitChangedFile 5syn region gitUntracked start=/^# Untracked files:/ end=/^#$/ contains=gitHead,gitUntrackedFile 6 7syn match gitCommitFile contained /^#\t.*/hs=s+2 8syn match gitChangedFile contained /^#\t.*/hs=s+2 9syn match gitUntrackedFile contained /^#\t.*/hs=s+2 10 11hi def link gitLine Comment 12hi def link gitCommit Comment 13hi def link gitChanged Comment 14hi def link gitHead Comment 15hi def link gitUntracked Comment 16hi def link gitCommitFile Type 17hi def link gitChangedFile Constant 18hi def link gitUntrackedFile Constant