annotate runtime/syntax/sendpr.vim @ 6013:25497677c087

Added tag v7-4-346 for changeset 3248c6e40aee
author Bram Moolenaar <bram@vim.org>
date Thu, 26 Jun 2014 21:24:57 +0200
parents b7811ab264bf
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: FreeBSD send-pr file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Hendrik Scholz <hendrik@scholz.net>
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
4 " Last Change: 2012 Feb 03
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " http://raisdorf.net/files/misc/send-pr.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
16 let s:cpo_save = &cpo
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
17 set cpo&vim
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
18
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match sendprComment /^SEND-PR:/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " email address
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match sendprType /<[a-zA-Z0-9\-\_\.]*@[a-zA-Z0-9\-\_\.]*>/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " ^> lines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match sendprString /^>[a-zA-Z\-]*:/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn region sendprLabel start="\[" end="\]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match sendprString /^To:/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match sendprString /^From:/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match sendprString /^Reply-To:/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match sendprString /^Cc:/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match sendprString /^X-send-pr-version:/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match sendprString /^X-GNATS-Notify:/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 hi def link sendprComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 hi def link sendprType Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 hi def link sendprString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 hi def link sendprLabel Label
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
36
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
37 let &cpo = s:cpo_save
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
38 unlet s:cpo_save