xref: /vim-8.2.3635/runtime/syntax/sendpr.vim (revision cb03397a)
1" Vim syntax file
2" Language: FreeBSD send-pr file
3" Maintainer: Hendrik Scholz <[email protected]>
4" Last Change: 2012 Feb 03
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
10if version < 600
11  syntax clear
12elseif exists("b:current_syntax")
13  finish
14endif
15
16let s:cpo_save = &cpo
17set cpo&vim
18
19syn match sendprComment /^SEND-PR:/
20" email address
21syn match sendprType /<[a-zA-Z0-9\-\_\.]*@[a-zA-Z0-9\-\_\.]*>/
22" ^> lines
23syn match sendprString /^>[a-zA-Z\-]*:/
24syn region sendprLabel start="\[" end="\]"
25syn match sendprString /^To:/
26syn match sendprString /^From:/
27syn match sendprString /^Reply-To:/
28syn match sendprString /^Cc:/
29syn match sendprString /^X-send-pr-version:/
30syn match sendprString /^X-GNATS-Notify:/
31
32hi def link sendprComment   Comment
33hi def link sendprType      Type
34hi def link sendprString    String
35hi def link sendprLabel     Label
36
37let &cpo = s:cpo_save
38unlet s:cpo_save
39