Mercurial > vim
comparison runtime/syntax/debchangelog.vim @ 10048:43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 30 23:26:57 2016 +0200
Updated runtime files. Remove version checks for Vim older than 6.0.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 30 Aug 2016 23:30:09 +0200 |
parents | 071f9da012fb |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
5 " Wichert Akkerman <wakkerma@debian.org> | 5 " Wichert Akkerman <wakkerma@debian.org> |
6 " Last Change: 2016 Apr 24 | 6 " Last Change: 2016 Apr 24 |
7 " URL: https://anonscm.debian.org/cgit/pkg-vim/vim.git/plain/runtime/syntax/debchangelog.vim | 7 " URL: https://anonscm.debian.org/cgit/pkg-vim/vim.git/plain/runtime/syntax/debchangelog.vim |
8 | 8 |
9 " Standard syntax initialization | 9 " Standard syntax initialization |
10 if version < 600 | 10 if exists("b:current_syntax") |
11 syntax clear | |
12 elseif exists("b:current_syntax") | |
13 finish | 11 finish |
14 endif | 12 endif |
15 | 13 |
16 " Case doesn't matter for us | 14 " Case doesn't matter for us |
17 syn case ignore | 15 syn case ignore |
34 syn region debchangelogHeader start="^[^ ]" end="$" contains=debchangelogName,debchangelogFirstKV,debchangelogOtherKV,debchangelogTarget,debchangelogVersion,debchangelogBinNMU oneline | 32 syn region debchangelogHeader start="^[^ ]" end="$" contains=debchangelogName,debchangelogFirstKV,debchangelogOtherKV,debchangelogTarget,debchangelogVersion,debchangelogBinNMU oneline |
35 syn region debchangelogFooter start="^ [^ ]" end="$" contains=debchangelogEmail oneline | 33 syn region debchangelogFooter start="^ [^ ]" end="$" contains=debchangelogEmail oneline |
36 syn region debchangelogEntry start="^ " end="$" contains=debchangelogCloses,debchangelogLP oneline | 34 syn region debchangelogEntry start="^ " end="$" contains=debchangelogCloses,debchangelogLP oneline |
37 | 35 |
38 " Associate our matches and regions with pretty colours | 36 " Associate our matches and regions with pretty colours |
39 if version >= 508 || !exists("did_debchangelog_syn_inits") | 37 command -nargs=+ HiLink hi def link <args> |
40 if version < 508 | |
41 let did_debchangelog_syn_inits = 1 | |
42 command -nargs=+ HiLink hi link <args> | |
43 else | |
44 command -nargs=+ HiLink hi def link <args> | |
45 endif | |
46 | 38 |
47 HiLink debchangelogHeader Error | 39 HiLink debchangelogHeader Error |
48 HiLink debchangelogFooter Identifier | 40 HiLink debchangelogFooter Identifier |
49 HiLink debchangelogEntry Normal | 41 HiLink debchangelogEntry Normal |
50 HiLink debchangelogCloses Statement | 42 HiLink debchangelogCloses Statement |
51 HiLink debchangelogLP Statement | 43 HiLink debchangelogLP Statement |
52 HiLink debchangelogFirstKV Identifier | 44 HiLink debchangelogFirstKV Identifier |
53 HiLink debchangelogOtherKV Identifier | 45 HiLink debchangelogOtherKV Identifier |
54 HiLink debchangelogName Comment | 46 HiLink debchangelogName Comment |
55 HiLink debchangelogVersion Identifier | 47 HiLink debchangelogVersion Identifier |
56 HiLink debchangelogTarget Identifier | 48 HiLink debchangelogTarget Identifier |
57 HiLink debchangelogEmail Special | 49 HiLink debchangelogEmail Special |
58 | 50 |
59 delcommand HiLink | 51 delcommand HiLink |
60 endif | |
61 | 52 |
62 let b:current_syntax = "debchangelog" | 53 let b:current_syntax = "debchangelog" |
63 | 54 |
64 " vim: ts=8 sw=2 | 55 " vim: ts=8 sw=2 |