Mercurial > vim
comparison runtime/syntax/debchangelog.vim @ 18489:1cd44535be32
Update runtime files.
Commit: https://github.com/vim/vim/commit/1ff14ba24c4d85c008d7abe5e140dbb497ffea8d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 2 14:09:23 2019 +0100
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 02 Nov 2019 14:15:04 +0100 |
parents | 8ac85adee561 |
children | 51bc26d4a393 |
comparison
equal
deleted
inserted
replaced
18488:1d7e6b677119 | 18489:1cd44535be32 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: Debian changelog files | 2 " Language: Debian changelog files |
3 " Maintainer: Debian Vim Maintainers | 3 " Maintainer: Debian Vim Maintainers |
4 " Former Maintainers: Gerfried Fuchs <alfie@ist.org> | 4 " Former Maintainers: Gerfried Fuchs <alfie@ist.org> |
5 " Wichert Akkerman <wakkerma@debian.org> | 5 " Wichert Akkerman <wakkerma@debian.org> |
6 " Last Change: 2019 Sep 07 | 6 " Last Change: 2019 Oct 20 |
7 " URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/syntax/debchangelog.vim | 7 " URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/syntax/debchangelog.vim |
8 | 8 |
9 " Standard syntax initialization | 9 " Standard syntax initialization |
10 if exists('b:current_syntax') | 10 if exists('b:current_syntax') |
11 finish | 11 finish |
15 syn case ignore | 15 syn case ignore |
16 | 16 |
17 let s:urgency='urgency=\(low\|medium\|high\|emergency\|critical\)\( [^[:space:],][^,]*\)\=' | 17 let s:urgency='urgency=\(low\|medium\|high\|emergency\|critical\)\( [^[:space:],][^,]*\)\=' |
18 let s:binNMU='binary-only=yes' | 18 let s:binNMU='binary-only=yes' |
19 | 19 |
20 let s:cpo = &cpo | |
21 set cpo-=C | |
22 let s:supported = [ | |
23 \ 'oldstable', 'stable', 'testing', 'unstable', 'experimental', | |
24 \ 'wheezy', 'jessie', 'stretch', 'buster', 'bullseye', 'bookworm', | |
25 \ 'sid', 'rc-buggy', | |
26 \ | |
27 \ 'trusty', 'xenial', 'bionic', 'disco', 'eoan', 'focal', 'devel' | |
28 \ ] | |
29 let s:unsupported = [ | |
30 \ 'frozen', 'buzz', 'rex', 'bo', 'hamm', 'slink', 'potato', | |
31 \ 'woody', 'sarge', 'etch', 'lenny', 'squeeze', | |
32 \ | |
33 \ 'warty', 'hoary', 'breezy', 'dapper', 'edgy', 'feisty', | |
34 \ 'gutsy', 'hardy', 'intrepid', 'jaunty', 'karmic', 'lucid', | |
35 \ 'maverick', 'natty', 'oneiric', 'precise', 'quantal', 'raring', 'saucy', | |
36 \ 'utopic', 'vivid', 'wily', 'yakkety', 'zesty', 'artful', 'cosmic' | |
37 \ ] | |
38 let &cpo=s:cpo | |
39 | |
20 " Define some common expressions we can use later on | 40 " Define some common expressions we can use later on |
21 syn match debchangelogName contained "^[[:alnum:]][[:alnum:].+-]\+ " | 41 syn match debchangelogName contained "^[[:alnum:]][[:alnum:].+-]\+ " |
22 exe 'syn match debchangelogFirstKV contained "; \('.s:urgency.'\|'.s:binNMU.'\)"' | 42 exe 'syn match debchangelogFirstKV contained "; \('.s:urgency.'\|'.s:binNMU.'\)"' |
23 exe 'syn match debchangelogOtherKV contained ", \('.s:urgency.'\|'.s:binNMU.'\)"' | 43 exe 'syn match debchangelogOtherKV contained ", \('.s:urgency.'\|'.s:binNMU.'\)"' |
24 syn match debchangelogTarget contained "\v %(frozen|unstable|sid|%(testing|%(old)=stable)%(-proposed-updates|-security)=|experimental|%(squeeze|wheezy|jessie)-%(backports%(-sloppy)=|lts|security)|stretch%(-backports%(-sloppy)=|-security)=|buster%(-backports|-security)=|bullseye|bookworm|%(devel|precise|trusty|vivid|wily|xenial|yakkety|zesty|artful|bionic|cosmic|disco|eoan)%(-%(security|proposed|updates|backports|commercial|partner))=)+" | 44 exe 'syn match debchangelogTarget contained "\%( \%('.join(s:supported, '\|').'\)\>[-[:alnum:]]*\)\+"' |
45 exe 'syn match debchangelogUnsupportedTarget contained "\%( \%('.join(s:unsupported, '\|').'\)\>[-[:alnum:]]*\)\+"' | |
46 syn keyword debchangelogUnreleased contained UNRELEASED | |
25 syn match debchangelogVersion contained "(.\{-})" | 47 syn match debchangelogVersion contained "(.\{-})" |
26 syn match debchangelogCloses contained "closes:\_s*\(bug\)\=#\=\_s\=\d\+\(,\_s*\(bug\)\=#\=\_s\=\d\+\)*" | 48 syn match debchangelogCloses contained "closes:\_s*\(bug\)\=#\=\_s\=\d\+\(,\_s*\(bug\)\=#\=\_s\=\d\+\)*" |
27 syn match debchangelogLP contained "\clp:\s\+#\d\+\(,\s*#\d\+\)*" | 49 syn match debchangelogLP contained "\clp:\s\+#\d\+\(,\s*#\d\+\)*" |
28 syn match debchangelogEmail contained "[_=[:alnum:].+-]\+@[[:alnum:]./\-]\+" | 50 syn match debchangelogEmail contained "[_=[:alnum:].+-]\+@[[:alnum:]./\-]\+" |
29 syn match debchangelogEmail contained "<.\{-}>" | 51 syn match debchangelogEmail contained "<.\{-}>" |
30 | 52 |
31 " Define the entries that make up the changelog | 53 " Define the entries that make up the changelog |
32 syn region debchangelogHeader start="^[^ ]" end="$" contains=debchangelogName,debchangelogFirstKV,debchangelogOtherKV,debchangelogTarget,debchangelogVersion,debchangelogBinNMU oneline | 54 syn region debchangelogHeader start="^[^ ]" end="$" contains=debchangelogName,debchangelogFirstKV,debchangelogOtherKV,debchangelogTarget,debchangelogUnsupportedTarget,debchangelogUnreleased,debchangelogVersion,debchangelogBinNMU oneline |
33 syn region debchangelogFooter start="^ [^ ]" end="$" contains=debchangelogEmail oneline | 55 syn region debchangelogFooter start="^ [^ ]" end="$" contains=debchangelogEmail oneline |
34 syn region debchangelogEntry start="^ " end="$" contains=debchangelogCloses,debchangelogLP oneline | 56 syn region debchangelogEntry start="^ " end="$" contains=debchangelogCloses,debchangelogLP oneline |
35 | 57 |
36 " Associate our matches and regions with pretty colours | 58 " Associate our matches and regions with pretty colours |
37 hi def link debchangelogHeader Error | 59 hi def link debchangelogHeader Error |
42 hi def link debchangelogFirstKV Identifier | 64 hi def link debchangelogFirstKV Identifier |
43 hi def link debchangelogOtherKV Identifier | 65 hi def link debchangelogOtherKV Identifier |
44 hi def link debchangelogName Comment | 66 hi def link debchangelogName Comment |
45 hi def link debchangelogVersion Identifier | 67 hi def link debchangelogVersion Identifier |
46 hi def link debchangelogTarget Identifier | 68 hi def link debchangelogTarget Identifier |
69 hi def link debchangelogUnsupportedTarget Identifier | |
70 hi def link debchangelogUnreleased WarningMsg | |
47 hi def link debchangelogEmail Special | 71 hi def link debchangelogEmail Special |
48 | 72 |
49 let b:current_syntax = 'debchangelog' | 73 let b:current_syntax = 'debchangelog' |
50 | 74 |
51 " vim: ts=8 sw=2 | 75 " vim: ts=8 sw=2 |