2 " Language: CVS commit file
3 " Maintainer: Matt Dunford (zoot@zotikos.com)
4 " Last Change: Thu Apr 26 13:17:53 CEST 2001
6 " For version 5.x: Clear all syntax items
7 " For version 6.x: Quit when a syntax file was already loaded
10 elseif exists("b:current_syntax")
14 syn region cvsLine start="^CVS:" end="$" contains=cvsFile,cvsDir,cvsFiles
15 syn match cvsFile contained "\s\t.*"
16 syn match cvsDir contained "Committing in.*$"
17 syn match cvsFiles contained "\S\+ Files:"
19 " Define the default highlighting.
20 " For version 5.7 and earlier: only when not done already
21 " For version 5.8 and later: only when an item doesn't have highlighting yet
22 if version >= 508 || !exists("did_cvs_syn_inits")
24 let did_cvs_syn_inits = 1
25 command -nargs=+ HiLink hi link <args>
27 command -nargs=+ HiLink hi def link <args>
30 HiLink cvsLine Comment
31 HiLink cvsFile Identifier
32 HiLink cvsFiles cvsDir
33 HiLink cvsDir Statement
38 let b:current_syntax = "cvs"