Mercurial > vim
comparison runtime/syntax/bindzone.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 | f2de38a019a2 |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
7 " Based on an earlier version by Вячеслав Горбанев (Slava Gorbanev), with | 7 " Based on an earlier version by Вячеслав Горбанев (Slava Gorbanev), with |
8 " heavy modifications. | 8 " heavy modifications. |
9 " | 9 " |
10 " $Id: bindzone.vim 12 2011-07-16 21:09:57Z julian $ | 10 " $Id: bindzone.vim 12 2011-07-16 21:09:57Z julian $ |
11 | 11 |
12 " For version 5.x: Clear all syntax items | 12 " quit when a syntax file was already loaded |
13 " For version 6.x: Quit when a syntax file was already loaded | 13 if exists("b:current_syntax") |
14 if version < 600 | |
15 syntax clear | |
16 elseif exists("b:current_syntax") | |
17 finish | 14 finish |
18 endif | 15 endif |
19 | 16 |
20 syn case match | 17 syn case match |
21 | 18 |
68 syn match zoneErrParen /)/ | 65 syn match zoneErrParen /)/ |
69 syn region zoneParen contained start="(" end=")" contains=zoneSerial,zoneTTL,zoneNumber,zoneComment | 66 syn region zoneParen contained start="(" end=")" contains=zoneSerial,zoneTTL,zoneNumber,zoneComment |
70 syn match zoneComment /;.*/ | 67 syn match zoneComment /;.*/ |
71 | 68 |
72 " Define the default highlighting. | 69 " Define the default highlighting. |
73 " For version 5.7 and earlier: only when not done already | 70 " Only when an item doesn't have highlighting yet |
74 " For version 5.8 and later: only when an item doesn't have highlighting yet | 71 command -nargs=+ HiLink hi def link <args> |
75 if version >= 508 || !exists("did_bind_zone_syn_inits") | |
76 if version < 508 | |
77 let did_bind_zone_syn_inits = 1 | |
78 command -nargs=+ HiLink hi link <args> | |
79 else | |
80 command -nargs=+ HiLink hi def link <args> | |
81 endif | |
82 | 72 |
83 HiLink zoneDirective Macro | 73 HiLink zoneDirective Macro |
84 | |
85 HiLink zoneUnknown Error | |
86 | |
87 HiLink zoneOrigin Statement | |
88 HiLink zoneOwnerName Statement | |
89 HiLink zoneDomain Identifier | |
90 | |
91 HiLink zoneSpecial Special | |
92 HiLink zoneTTL Constant | |
93 HiLink zoneClass Include | |
94 HiLink zoneRRType Type | |
95 | |
96 HiLink zoneIPAddr Number | |
97 HiLink zoneIP6Addr Number | |
98 HiLink zoneText String | |
99 HiLink zoneNumber Number | |
100 HiLink zoneSerial Special | |
101 | |
102 HiLink zoneErrParen Error | |
103 HiLink zoneComment Comment | |
104 | 74 |
105 delcommand HiLink | 75 HiLink zoneUnknown Error |
106 endif | 76 |
77 HiLink zoneOrigin Statement | |
78 HiLink zoneOwnerName Statement | |
79 HiLink zoneDomain Identifier | |
80 | |
81 HiLink zoneSpecial Special | |
82 HiLink zoneTTL Constant | |
83 HiLink zoneClass Include | |
84 HiLink zoneRRType Type | |
85 | |
86 HiLink zoneIPAddr Number | |
87 HiLink zoneIP6Addr Number | |
88 HiLink zoneText String | |
89 HiLink zoneNumber Number | |
90 HiLink zoneSerial Special | |
91 | |
92 HiLink zoneErrParen Error | |
93 HiLink zoneComment Comment | |
94 | |
95 delcommand HiLink | |
107 | 96 |
108 let b:current_syntax = "bindzone" | 97 let b:current_syntax = "bindzone" |
109 | 98 |
110 " vim:sts=2 sw=2 | 99 " vim:sts=2 sw=2 |