Start anew
[git/jnareb-git.git] / share / vim / vim58 / syntax / cvs.vim
blobd03721677e1aa42f0823c5760d46dcf9d9e7d4e4
1 " Vim syntax file
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
8 if version < 600
9         syntax clear
10 elseif exists("b:current_syntax")
11         finish
12 endif
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")
23         if version < 508
24                 let did_cvs_syn_inits = 1
25                 command -nargs=+ HiLink hi link <args>
26         else
27                 command -nargs=+ HiLink hi def link <args>
28         endif
30         HiLink cvsLine          Comment
31         HiLink cvsFile          Identifier
32         HiLink cvsFiles         cvsDir
33         HiLink cvsDir           Statement
35         delcommand HiLink
36 endif
38 let b:current_syntax = "cvs"