7
|
1 " Vim syntax file
|
375
|
2 " Language: cvs(1) RC file
|
839
|
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
|
|
4 " Latest Revision: 2006-04-19
|
7
|
5
|
375
|
6 if exists("b:current_syntax")
|
7
|
7 finish
|
|
8 endif
|
|
9
|
375
|
10 let s:cpo_save = &cpo
|
|
11 set cpo&vim
|
7
|
12
|
389
|
13 syn region cvsrcString display oneline start=+"+ skip=+\\\\\|\\\\"+ end=+"+
|
|
14 syn region cvsrcString display oneline start=+'+ skip=+\\\\\|\\\\'+ end=+'+
|
7
|
15
|
375
|
16 syn match cvsrcNumber display '\<\d\+\>'
|
7
|
17
|
375
|
18 syn match cvsrcBegin display '^' nextgroup=cvsrcCommand skipwhite
|
7
|
19
|
375
|
20 syn region cvsrcCommand contained transparent matchgroup=cvsrcCommand
|
|
21 \ start='add\|admin\|checkout\|commit\|cvs\|diff'
|
|
22 \ start='export\|history\|import\|init\|log'
|
|
23 \ start='rdiff\|release\|remove\|rtag\|status\|tag'
|
|
24 \ start='update'
|
|
25 \ end='$'
|
|
26 \ contains=cvsrcOption,cvsrcString,cvsrcNumber
|
|
27 \ keepend
|
7
|
28
|
375
|
29 syn match cvsrcOption contained display '-\a\+'
|
|
30
|
|
31 hi def link cvsrcString String
|
|
32 hi def link cvsrcNumber Number
|
|
33 hi def link cvsrcCommand Keyword
|
|
34 hi def link cvsrcOption Identifier
|
7
|
35
|
|
36 let b:current_syntax = "cvsrc"
|
|
37
|
375
|
38 let &cpo = s:cpo_save
|
|
39 unlet s:cpo_save
|