7
|
1 " Vim syntax file
|
|
2 " Language: FreeBSD send-pr file
|
|
3 " Maintainer: Hendrik Scholz <hendrik@scholz.net>
|
3312
|
4 " Last Change: 2012 Feb 03
|
7
|
5 "
|
|
6 " http://raisdorf.net/files/misc/send-pr.vim
|
|
7
|
|
8 " For version 5.x: Clear all syntax items
|
|
9 " For version 6.x: Quit when a syntax file was already loaded
|
|
10 if version < 600
|
|
11 syntax clear
|
|
12 elseif exists("b:current_syntax")
|
|
13 finish
|
|
14 endif
|
|
15
|
3312
|
16 let s:cpo_save = &cpo
|
|
17 set cpo&vim
|
|
18
|
7
|
19 syn match sendprComment /^SEND-PR:/
|
|
20 " email address
|
|
21 syn match sendprType /<[a-zA-Z0-9\-\_\.]*@[a-zA-Z0-9\-\_\.]*>/
|
|
22 " ^> lines
|
|
23 syn match sendprString /^>[a-zA-Z\-]*:/
|
|
24 syn region sendprLabel start="\[" end="\]"
|
|
25 syn match sendprString /^To:/
|
|
26 syn match sendprString /^From:/
|
|
27 syn match sendprString /^Reply-To:/
|
|
28 syn match sendprString /^Cc:/
|
|
29 syn match sendprString /^X-send-pr-version:/
|
|
30 syn match sendprString /^X-GNATS-Notify:/
|
|
31
|
|
32 hi def link sendprComment Comment
|
|
33 hi def link sendprType Type
|
|
34 hi def link sendprString String
|
|
35 hi def link sendprLabel Label
|
3312
|
36
|
|
37 let &cpo = s:cpo_save
|
|
38 unlet s:cpo_save
|