annotate runtime/syntax/debcopyright.vim @ 15943:e5f82e8b3c06 v8.1.0977

patch 8.1.0977: blob not tested with Ruby commit https://github.com/vim/vim/commit/0d13cce3453b2274c93c5015faa1993baaebace9 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 23 14:23:03 2019 +0100 patch 8.1.0977: blob not tested with Ruby Problem: Blob not tested with Ruby. Solution: Add more test coverage. fixes a crash. (Dominique Pelle, closes #4036)
author Bram Moolenaar <Bram@vim.org>
date Sat, 23 Feb 2019 14:30:11 +0100
parents e751b5c9dff3
children 8ac85adee561
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
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
4 " Last Change: 2018 Feb 05
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:]]*)?$"
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
18 syn match debcopyrightKey "^\%(Format\|Upstream-Name\|Upstream-Contact\|Disclaimer\|Source\|Comment\|Files\|Copyright\|License\): *"
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