annotate runtime/syntax/debcopyright.vim @ 19659:bc70c52c5c12 v8.2.0386

patch 8.2.0386: part from unfinished patch got included Commit: https://github.com/vim/vim/commit/0bdbc10e8a74e7dd447cd975fb1445bbdcbb4f37 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 15 16:51:40 2020 +0100 patch 8.2.0386: part from unfinished patch got included Problem: Part from unfinished patch got included. Solution: Undo that part.
author Bram Moolenaar <Bram@vim.org>
date Sun, 15 Mar 2020 17:00:04 +0100
parents 8ac85adee561
children cc751d944b7e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13857
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 " Vim syntax file
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2 " Language: Debian copyright file
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
3 " Maintainer: Debian Vim Maintainers
18053
8ac85adee561 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 13857
diff changeset
4 " Last Change: 2019 Sep 07
13857
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
5 " URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/syntax/debcopyright.vim
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
6
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
7 " Standard syntax initialization
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
8 if exists('b:current_syntax')
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
9 finish
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
10 endif
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
11
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
12 let s:cpo_save = &cpo
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
13 set cpo&vim
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
14
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
15 syn case match
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
16
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
17 syn match debcopyrightUrl "\vhttps?://[[:alnum:]][-[:alnum:]]*[[:alnum:]]?(\.[[:alnum:]][-[:alnum:]]*[[:alnum:]]?)*\.[[:alpha:]][-[:alnum:]]*[[:alpha:]]?(:\d+)?(/[^[:space:]]*)?$"
18053
8ac85adee561 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 13857
diff changeset
18 syn match debcopyrightKey "^\%(Format\|Upstream-Name\|Upstream-Contact\|Disclaimer\|Source\|Comment\|Files\|Copyright\|License\|Files-Excluded\%(-[-a-zA-Z0-9]\+\)\=\): *"
13857
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
19 syn match debcopyrightEmail "[_=[:alnum:]\.+-]\+@[[:alnum:]\./\-]\+"
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
20 syn match debcopyrightEmail "<.\{-}>"
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
21 syn match debcopyrightComment "^#.*$" contains=@Spell
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
22
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
23 hi def link debcopyrightUrl Identifier
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
24 hi def link debcopyrightKey Keyword
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
25 hi def link debcopyrightEmail Identifier
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
26 hi def link debcopyrightComment Comment
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
27
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
28 let b:current_syntax = 'debcopyright'
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
29
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
30 let &cpo = s:cpo_save
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
31 unlet s:cpo_save
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
32
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
33 " vim: ts=8 sw=2