annotate runtime/syntax/debcopyright.vim @ 20559:533bbd1917be v8.2.0833

patch 8.2.0833: mapping <C-bslash> doesn't work in the GUI Commit: https://github.com/vim/vim/commit/ca5bc746073b6fd4b7651bc02f7a18b1b43bd4ca Author: Bram Moolenaar <Bram@vim.org> Date: Wed May 27 22:08:34 2020 +0200 patch 8.2.0833: mapping <C-bslash> doesn't work in the GUI Problem: Mapping <C-bslash> doesn't work in the GUI. Solution: Reset seenModifyOtherKeys when starting the GUI. (closes https://github.com/vim/vim/issues/6150)
author Bram Moolenaar <Bram@vim.org>
date Wed, 27 May 2020 22:15:04 +0200
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