Mercurial > hg
comparison contrib/vim/HGAnnotate.vim @ 2591:61f2008cd6bf
Addition of CVScommand vim script as a base for HGcommand
author | "Mathieu Clabaut <mathieu.clabaut@gmail.com>" |
---|---|
date | Mon, 10 Jul 2006 23:39:08 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2576:6a961a54f953 | 2591:61f2008cd6bf |
---|---|
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 <bob@hiestandfamily.org> | |
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" |