annotate runtime/syntax/debcopyright.vim @ 19750:aa674de6d813 v8.2.0431

patch 8.2.0431: some compilers don't support using e for Esc Commit: https://github.com/vim/vim/commit/56ba21a156c723d92a1929e2c500be7295efb0a8 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 23 19:17:29 2020 +0100 patch 8.2.0431: some compilers don't support using \e for Esc Problem: Some compilers don't support using \e for Esc. (Yegappan Lakshmanan) Solution: use \033 instead.
author Bram Moolenaar <Bram@vim.org>
date Mon, 23 Mar 2020 19:30: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