annotate runtime/syntax/bindzone.vim @ 21792:4eb35250b54e

Added tag v8.2.1445 for changeset d504fcd3d2c061f2d90853266abdd9da8114908c
author Bram Moolenaar <Bram@vim.org>
date Fri, 14 Aug 2020 17:15:05 +0200
parents 03b854983b14
children e227a1c3c3ac
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
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2965
diff changeset
12 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2965
diff changeset
13 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
19 " Directives
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
20 syn region zoneRRecord start=/^/ end=/$/ contains=zoneOwnerName,zoneSpecial,zoneTTL,zoneClass,zoneRRType,zoneComment,zoneUnknown
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
22 syn match zoneDirective /^\$ORIGIN\s\+/ nextgroup=zoneOrigin,zoneUnknown
2965
f2de38a019a2 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
23 syn match zoneDirective /^\$TTL\s\+/ nextgroup=zoneTTL,zoneUnknown
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
24 syn match zoneDirective /^\$INCLUDE\s\+/ nextgroup=zoneText,zoneUnknown
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
25 syn match zoneDirective /^\$GENERATE\s/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
27 syn match zoneUnknown contained /\S\+/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
29 syn match zoneOwnerName contained /^[^[:space:]!"#$%&'()*+,\/:;<=>?@[\]\^`{|}~]\+\(\s\|;\)\@=/ nextgroup=zoneTTL,zoneClass,zoneRRType skipwhite
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
30 syn match zoneOrigin contained /[^[:space:]!"#$%&'()*+,\/:;<=>?@[\]\^`{|}~]\+\(\s\|;\|$\)\@=/
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
31 syn match zoneDomain contained /[^[:space:]!"#$%&'()*+,\/:;<=>?@[\]\^`{|}~]\+\(\s\|;\|$\)\@=/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
33 syn match zoneSpecial contained /^[@*.]\s/
2965
f2de38a019a2 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
34 syn match zoneTTL contained /\s\@<=\d[0-9WwDdHhMmSs]*\(\s\|$\)\@=/ nextgroup=zoneClass,zoneRRType skipwhite
18186
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
35 syn keyword zoneClass contained IN CHAOS CH HS HESIOD nextgroup=zoneRRType,zoneTTL skipwhite
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
36 syn keyword zoneRRType contained A AAAA CERT CNAME DNAME DNSKEY DS HINFO LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM PTR RP RRSIG SSHFP SOA SPF SRV TLSA TXT nextgroup=zoneRData skipwhite
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
37 syn match zoneRData contained /[^;]*/ contains=zoneDomain,zoneIPAddr,zoneIP6Addr,zoneText,zoneNumber,zoneParen,zoneUnknown
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
38
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
39 syn match zoneIPAddr contained /\<[0-9]\{1,3}\(\.[0-9]\{1,3}\)\{,3}\>/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
41 " Plain IPv6 address IPv6-embedded-IPv4 address
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
42 " 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
43 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
44 " ::[...:]8 ::[...:]127.0.0.1
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
45 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
46 " 1111::[...:]8 1111::[...:]127.0.0.1
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
47 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
48 " 1111:2::[...:]8 1111:2::[...:]127.0.0.1
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
49 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
50 " 1111:2:3::[...:]8 1111:2:3::[...:]127.0.0.1
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
51 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
52 " 1111:2:3:4::[...:]8 1111:2:3:4::[...:]127.0.0.1
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
53 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
54 " 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
55 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
56 " 1111:2:3:4:5:6::8 -
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
57 syn match zoneIP6Addr contained /\<\(\x\{1,4}:\)\{6}:\x\{1,4}\>/
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
58 " 1111[:...]:: -
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
59 syn match zoneIP6Addr contained /\<\(\x\{1,4}:\)\{1,7}:\(\s\|;\|$\)\@=/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
61 syn match zoneText contained /"\([^"\\]\|\\.\)*"\(\s\|;\|$\)\@=/
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
62 syn match zoneNumber contained /\<[0-9]\+\(\s\|;\|$\)\@=/
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
63 syn match zoneSerial contained /\<[0-9]\{9,10}\(\s\|;\|$\)\@=/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
65 syn match zoneErrParen /)/
2965
f2de38a019a2 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
66 syn region zoneParen contained start="(" end=")" contains=zoneSerial,zoneTTL,zoneNumber,zoneComment
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
67 syn match zoneComment /;.*/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2965
diff changeset
70 " Only when an item doesn't have highlighting yet
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2965
diff changeset
71
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
72 hi def link zoneDirective Macro
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2965
diff changeset
73
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
74 hi def link zoneUnknown Error
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2965
diff changeset
75
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
76 hi def link zoneOrigin Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
77 hi def link zoneOwnerName Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
78 hi def link zoneDomain Identifier
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
80 hi def link zoneSpecial Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
81 hi def link zoneTTL Constant
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
82 hi def link zoneClass Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
83 hi def link zoneRRType Type
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
85 hi def link zoneIPAddr Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
86 hi def link zoneIP6Addr Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
87 hi def link zoneText String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
88 hi def link zoneNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
89 hi def link zoneSerial Special
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2965
diff changeset
90
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
91 hi def link zoneErrParen Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
92 hi def link zoneComment Comment
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2965
diff changeset
93
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 let b:current_syntax = "bindzone"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
97 " vim:sts=2 sw=2