Mercurial > vim
annotate runtime/syntax/sendpr.vim @ 19894:ea4f8e789627 v8.2.0503
patch 8.2.0503: Vim9: some code is not tested
Commit: https://github.com/vim/vim/commit/585fea7b98b79f2c6d92fa8a2340e461aff805c8
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 2 22:33:21 2020 +0200
patch 8.2.0503: Vim9: some code is not tested
Problem: Vim9: some code is not tested.
Solution: Add tests. Fix uncovered problems.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 02 Apr 2020 22:45:04 +0200 |
parents | 43efa4f5a8ea |
children | 1e9e9d89f0ee |
rev | line source |
---|---|
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 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3312
diff
changeset
|
8 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3312
diff
changeset
|
9 if exists("b:current_syntax") |
7 | 10 finish |
11 endif | |
12 | |
3312 | 13 let s:cpo_save = &cpo |
14 set cpo&vim | |
15 | |
7 | 16 syn match sendprComment /^SEND-PR:/ |
17 " email address | |
18 syn match sendprType /<[a-zA-Z0-9\-\_\.]*@[a-zA-Z0-9\-\_\.]*>/ | |
19 " ^> lines | |
20 syn match sendprString /^>[a-zA-Z\-]*:/ | |
21 syn region sendprLabel start="\[" end="\]" | |
22 syn match sendprString /^To:/ | |
23 syn match sendprString /^From:/ | |
24 syn match sendprString /^Reply-To:/ | |
25 syn match sendprString /^Cc:/ | |
26 syn match sendprString /^X-send-pr-version:/ | |
27 syn match sendprString /^X-GNATS-Notify:/ | |
28 | |
29 hi def link sendprComment Comment | |
30 hi def link sendprType Type | |
31 hi def link sendprString String | |
32 hi def link sendprLabel Label | |
3312 | 33 |
34 let &cpo = s:cpo_save | |
35 unlet s:cpo_save |