annotate runtime/syntax/bindzone.vim @ 8800:f57949e1e9f1 v7.4.1688

commit https://github.com/vim/vim/commit/67c2c058ea34628bd575aac7ddba4cd3b244ed57 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 30 22:03:02 2016 +0200 patch 7.4.1688 Problem: MzScheme does not support partial. Solution: Add minimal partial support. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Wed, 30 Mar 2016 22:15:10 +0200
parents f2de38a019a2
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
2965
f2de38a019a2 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
2 " Language: BIND zone files (RFC 1035)
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
3 " Maintainer: Julian Mehnle <julian@mehnle.net>
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
4 " URL: http://www.mehnle.net/source/odds+ends/vim/syntax/
2965
f2de38a019a2 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
5 " Last Change: Thu 2011-07-16 20:42:00 UTC
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
6 "
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
7 " Based on an earlier version by Вячеслав Горбанев (Slava Gorbanev), with
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
8 " heavy modifications.
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
9 "
2965
f2de38a019a2 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
10 " $Id: bindzone.vim 12 2011-07-16 21:09:57Z julian $
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
22 " Directives
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
23 syn region zoneRRecord start=/^/ end=/$/ contains=zoneOwnerName,zoneSpecial,zoneTTL,zoneClass,zoneRRType,zoneComment,zoneUnknown
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
25 syn match zoneDirective /^\$ORIGIN\s\+/ nextgroup=zoneOrigin,zoneUnknown
2965
f2de38a019a2 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
26 syn match zoneDirective /^\$TTL\s\+/ nextgroup=zoneTTL,zoneUnknown
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
27 syn match zoneDirective /^\$INCLUDE\s\+/ nextgroup=zoneText,zoneUnknown
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
28 syn match zoneDirective /^\$GENERATE\s/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
30 syn match zoneUnknown contained /\S\+/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
32 syn match zoneOwnerName contained /^[^[:space:]!"#$%&'()*+,\/:;<=>?@[\]\^`{|}~]\+\(\s\|;\)\@=/ nextgroup=zoneTTL,zoneClass,zoneRRType skipwhite
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
33 syn match zoneOrigin contained /[^[:space:]!"#$%&'()*+,\/:;<=>?@[\]\^`{|}~]\+\(\s\|;\|$\)\@=/
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
34 syn match zoneDomain contained /[^[:space:]!"#$%&'()*+,\/:;<=>?@[\]\^`{|}~]\+\(\s\|;\|$\)\@=/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
36 syn match zoneSpecial contained /^[@*.]\s/
2965
f2de38a019a2 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
37 syn match zoneTTL contained /\s\@<=\d[0-9WwDdHhMmSs]*\(\s\|$\)\@=/ nextgroup=zoneClass,zoneRRType skipwhite
f2de38a019a2 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
38 syn keyword zoneClass contained IN CHAOS nextgroup=zoneRRType,zoneTTL skipwhite
f2de38a019a2 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
39 syn keyword zoneRRType contained A AAAA CNAME DNAME HINFO MX NS PTR SOA SRV TXT SPF nextgroup=zoneRData skipwhite
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
40 syn match zoneRData contained /[^;]*/ contains=zoneDomain,zoneIPAddr,zoneIP6Addr,zoneText,zoneNumber,zoneParen,zoneUnknown
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
41
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
42 syn match zoneIPAddr contained /\<[0-9]\{1,3}\(\.[0-9]\{1,3}\)\{,3}\>/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
44 " Plain IPv6 address IPv6-embedded-IPv4 address
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
45 " 1111:2:3:4:5:6:7:8 1111:2:3:4:5:6:127.0.0.1
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
46 syn match zoneIP6Addr contained /\<\(\x\{1,4}:\)\{6}\(\x\{1,4}:\x\{1,4}\|\([0-2]\?\d\{1,2}\.\)\{3}[0-2]\?\d\{1,2}\)\>/
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
47 " ::[...:]8 ::[...:]127.0.0.1
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
48 syn match zoneIP6Addr contained /\s\@<=::\(\(\x\{1,4}:\)\{,6}\x\{1,4}\|\(\x\{1,4}:\)\{,5}\([0-2]\?\d\{1,2}\.\)\{3}[0-2]\?\d\{1,2}\)\>/
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
49 " 1111::[...:]8 1111::[...:]127.0.0.1
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
50 syn match zoneIP6Addr contained /\<\(\x\{1,4}:\)\{1}:\(\(\x\{1,4}:\)\{,5}\x\{1,4}\|\(\x\{1,4}:\)\{,4}\([0-2]\?\d\{1,2}\.\)\{3}[0-2]\?\d\{1,2}\)\>/
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
51 " 1111:2::[...:]8 1111:2::[...:]127.0.0.1
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
52 syn match zoneIP6Addr contained /\<\(\x\{1,4}:\)\{2}:\(\(\x\{1,4}:\)\{,4}\x\{1,4}\|\(\x\{1,4}:\)\{,3}\([0-2]\?\d\{1,2}\.\)\{3}[0-2]\?\d\{1,2}\)\>/
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
53 " 1111:2:3::[...:]8 1111:2:3::[...:]127.0.0.1
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
54 syn match zoneIP6Addr contained /\<\(\x\{1,4}:\)\{3}:\(\(\x\{1,4}:\)\{,3}\x\{1,4}\|\(\x\{1,4}:\)\{,2}\([0-2]\?\d\{1,2}\.\)\{3}[0-2]\?\d\{1,2}\)\>/
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
55 " 1111:2:3:4::[...:]8 1111:2:3:4::[...:]127.0.0.1
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
56 syn match zoneIP6Addr contained /\<\(\x\{1,4}:\)\{4}:\(\(\x\{1,4}:\)\{,2}\x\{1,4}\|\(\x\{1,4}:\)\{,1}\([0-2]\?\d\{1,2}\.\)\{3}[0-2]\?\d\{1,2}\)\>/
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
57 " 1111:2:3:4:5::[...:]8 1111:2:3:4:5::127.0.0.1
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
58 syn match zoneIP6Addr contained /\<\(\x\{1,4}:\)\{5}:\(\(\x\{1,4}:\)\{,1}\x\{1,4}\|\([0-2]\?\d\{1,2}\.\)\{3}[0-2]\?\d\{1,2}\)\>/
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
59 " 1111:2:3:4:5:6::8 -
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
60 syn match zoneIP6Addr contained /\<\(\x\{1,4}:\)\{6}:\x\{1,4}\>/
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
61 " 1111[:...]:: -
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
62 syn match zoneIP6Addr contained /\<\(\x\{1,4}:\)\{1,7}:\(\s\|;\|$\)\@=/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
64 syn match zoneText contained /"\([^"\\]\|\\.\)*"\(\s\|;\|$\)\@=/
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
65 syn match zoneNumber contained /\<[0-9]\+\(\s\|;\|$\)\@=/
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
66 syn match zoneSerial contained /\<[0-9]\{9,10}\(\s\|;\|$\)\@=/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
68 syn match zoneErrParen /)/
2965
f2de38a019a2 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
69 syn region zoneParen contained start="(" end=")" contains=zoneSerial,zoneTTL,zoneNumber,zoneComment
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
70 syn match zoneComment /;.*/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 if version >= 508 || !exists("did_bind_zone_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 let did_bind_zone_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
83 HiLink zoneDirective Macro
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
84
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
85 HiLink zoneUnknown Error
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
86
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
87 HiLink zoneOrigin Statement
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
88 HiLink zoneOwnerName Statement
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
89 HiLink zoneDomain Identifier
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
90
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
91 HiLink zoneSpecial Special
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
92 HiLink zoneTTL Constant
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
93 HiLink zoneClass Include
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
94 HiLink zoneRRType Type
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
95
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
96 HiLink zoneIPAddr Number
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
97 HiLink zoneIP6Addr Number
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
98 HiLink zoneText String
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
99 HiLink zoneNumber Number
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
100 HiLink zoneSerial Special
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
101
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
102 HiLink zoneErrParen Error
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
103 HiLink zoneComment Comment
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 let b:current_syntax = "bindzone"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
110 " vim:sts=2 sw=2