Merged from the latest developing branch.
[MacVim/KaoriYa.git] / runtime / syntax / cvsrc.vim
blob6c2c4eea04adfa4f68412764dae3c26a4d84e562
1 " Vim syntax file
2 " Language:         cvs(1) RC file
3 " Maintainer:       Nikolai Weibull <now@bitwi.se>
4 " Latest Revision:  2006-04-19
6 if exists("b:current_syntax")
7   finish
8 endif
10 let s:cpo_save = &cpo
11 set cpo&vim
13 syn region  cvsrcString   display oneline start=+"+ skip=+\\\\\|\\\\"+ end=+"+
14 syn region  cvsrcString   display oneline start=+'+ skip=+\\\\\|\\\\'+ end=+'+
16 syn match   cvsrcNumber   display '\<\d\+\>'
18 syn match   cvsrcBegin    display '^' nextgroup=cvsrcCommand skipwhite
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
29 syn match   cvsrcOption   contained display '-\a\+'
31 hi def link cvsrcString   String
32 hi def link cvsrcNumber   Number
33 hi def link cvsrcCommand  Keyword
34 hi def link cvsrcOption   Identifier
36 let b:current_syntax = "cvsrc"
38 let &cpo = s:cpo_save
39 unlet s:cpo_save