" Vim syntax file " Language: cogito/git commit file " Maintainer: Krzysiek Pawlik (nelchael@gentoo.org) " URL: http://dev.gentoo.org/~nelchael/vim/cogito.vim " Setup if version >= 600 if exists("b:current_syntax") finish endif else syntax clear endif syn region cogitoLine start="^CG:" end="$" contains=cogitoFile,cogitoAuthor,cogitoEmail syn match cogitoFile contained "CG:F .*" syn match cogitoAuthor contained "Author: .*$" syn match cogitoEmail contained "Email: .*$" " Define the default highlighting if version >= 508 || !exists("did_cogito_syntax_inits") if version < 508 " let did_cogito_syntax_inits = 1 command -nargs=+ HiLink hi link else command -nargs=+ HiLink hi def link endif HiLink cogitoLine Comment HiLink cogitoFile Label HiLink cogitoEmail Identifier HiLink cogitoAuthor Identifier delcommand HiLink endif let b:current_syntax = "cogito"