annotate runtime/syntax/dep3patch.vim @ 26780:b24b2217ff9e v8.2.3918

patch 8.2.3918: function list test fails Commit: https://github.com/vim/vim/commit/be4e223eadaa765bf2957f196e4d4b6014057bd1 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 27 21:42:57 2021 +0000 patch 8.2.3918: function list test fails Problem: Function list test fails. Solution: Adjust the test for the new location of the function list.
author Bram Moolenaar <Bram@vim.org>
date Mon, 27 Dec 2021 22:45:04 +0100
parents f0d7cb510ce3
children 6dd88e45d47d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26708
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim syntax file
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: Debian DEP3 Patch headers
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: Gabriel Filion <gabster@lelutin.ca>
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " Last Change: 2021-01-09
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5 " URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/syntax/dep3patch.vim
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 "
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 " Specification of the DEP3 patch header format is available at:
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 " https://dep-team.pages.debian.net/deps/dep3/
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 " Standard syntax initialization
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 if exists('b:current_syntax')
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 finish
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 endif
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 runtime! syntax/diff.vim
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 unlet! b:current_syntax
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 let s:cpo_save = &cpo
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 set cpo&vim
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 syn region dep3patchHeaders start="\%^" end="^\%(---\)\@=" contains=dep3patchKey,dep3patchMultiField
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23 syn case ignore
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
24
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
25 syn region dep3patchMultiField matchgroup=dep3patchKey start="^\%(Description\|Subject\)\ze: *" skip="^[ \t]" end="^$"me=s-1 end="^[^ \t#]"me=s-1 contained contains=@Spell
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
26 syn region dep3patchMultiField matchgroup=dep3patchKey start="^Origin\ze: *" end="$" contained contains=dep3patchHTTPUrl,dep3patchCommitID,dep3patchOriginCategory oneline keepend
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
27 syn region dep3patchMultiField matchgroup=dep3patchKey start="^Bug\%(-[[:graph:]]\+\)\?\ze: *" end="$" contained contains=dep3patchHTTPUrl oneline keepend
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
28 syn region dep3patchMultiField matchgroup=dep3patchKey start="^Forwarded\ze: *" end="$" contained contains=dep3patchHTTPUrl,dep3patchForwardedShort oneline keepend
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
29 syn region dep3patchMultiField matchgroup=dep3patchKey start="^\%(Author\|From\)\ze: *" end="$" contained contains=dep3patchEmail oneline keepend
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
30 syn region dep3patchMultiField matchgroup=dep3patchKey start="^\%(Reviewed-by\|Acked-by\)\ze: *" end="$" contained contains=dep3patchEmail oneline keepend
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
31 syn region dep3patchMultiField matchgroup=dep3patchKey start="^Last-Updated\ze: *" end="$" contained contains=dep3patchISODate oneline keepend
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
32 syn region dep3patchMultiField matchgroup=dep3patchKey start="^Applied-Upstream\ze: *" end="$" contained contains=dep3patchHTTPUrl,dep3patchCommitID oneline keepend
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
33
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
34 syn match dep3patchHTTPUrl contained "\vhttps?://[[:alnum:]][-[:alnum:]]*[[:alnum:]]?(\.[[:alnum:]][-[:alnum:]]*[[:alnum:]]?)*\.[[:alpha:]][-[:alnum:]]*[[:alpha:]]?(:\d+)?(/[^[:space:]]*)?$"
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
35 syn match dep3patchCommitID contained "commit:[[:alnum:]]\+"
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
36 syn match dep3patchOriginCategory contained "\%(upstream\|backport\|vendor\|other\), "
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
37 syn match dep3patchForwardedShort contained "\%(yes\|no\|not-needed\), "
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
38 syn match dep3patchEmail "[_=[:alnum:]\.+-]\+@[[:alnum:]\./\-]\+"
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
39 syn match dep3patchEmail "<.\{-}>"
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
40 syn match dep3patchISODate "[[:digit:]]\{4}-[[:digit:]]\{2}-[[:digit:]]\{2}"
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
41
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
42 " Associate our matches and regions with pretty colours
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
43 hi def link dep3patchKey Keyword
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
44 hi def link dep3patchOriginCategory Keyword
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
45 hi def link dep3patchForwardedShort Keyword
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
46 hi def link dep3patchMultiField Normal
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
47 hi def link dep3patchHTTPUrl Identifier
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
48 hi def link dep3patchCommitID Identifier
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
49 hi def link dep3patchEmail Identifier
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
50 hi def link dep3patchISODate Identifier
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
51
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
52 let b:current_syntax = 'dep3patch'
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
53
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
54 let &cpo = s:cpo_save
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
55 unlet s:cpo_save
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
56
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
57 " vim: ts=8 sw=2