| 1 |
" $Id: CVSAnnotate.vim,v 1.5 2002/10/01 21:34:02 rhiestan Exp $ |
| 2 |
" Vim syntax file |
| 3 |
" Language: CVS annotate output |
| 4 |
" Maintainer: Bob Hiestand <[email protected]> |
| 5 |
" Last Change: $Date: 2002/10/01 21:34:02 $ |
| 6 |
" Remark: Used by the cvscommand plugin. Originally written by Mathieu |
| 7 |
" Clabaut |
| 8 |
if version < 600 |
| 9 |
syntax clear |
| 10 |
elseif exists("b:current_syntax") |
| 11 |
finish |
| 12 |
endif |
| 13 |
|
| 14 |
syn match cvsDate /\S\S\S \S\+ \d\+ \d\+:\d\+:\d\+ \d\+ [+-]\?\d\+/ contained |
| 15 |
syn match cvsName /^\s*\S\+ / contained nextgroup=cvsVer |
| 16 |
syn match cvsVer /\d\+ / contained nextgroup=cvsDate |
| 17 |
syn region cvsHead start="^" end=":" contains=cvsVer,cvsName,cvsDate |
| 18 |
|
| 19 |
if !exists("did_cvsannotate_syntax_inits") |
| 20 |
let did_cvsannotate_syntax_inits = 1 |
| 21 |
hi link cvsText String |
| 22 |
hi link cvsDate Comment |
| 23 |
hi link cvsName Type |
| 24 |
hi link cvsVer Statement |
| 25 |
endif |
| 26 |
|
| 27 |
let b:current_syntax="CVSAnnotate" |