annotate runtime/syntax/debcopyright.vim @ 19728:41a1ea967a97 v8.2.0420

patch 8.2.0420: Vim9: cannot interrupt a loop with CTRL-C Commit: https://github.com/vim/vim/commit/f1ec378b014efb9897422c40369a6462163a512a Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 20 19:37:47 2020 +0100 patch 8.2.0420: Vim9: cannot interrupt a loop with CTRL-C Problem: Vim9: cannot interrupt a loop with CTRL-C. Solution: Check for CTRL-C once in a while. Doesn't fully work yet.
author Bram Moolenaar <Bram@vim.org>
date Fri, 20 Mar 2020 19:45:03 +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