annotate runtime/syntax/named.vim @ 18488:1d7e6b677119

Added tag v8.1.2238 for changeset 5b95ccb82c0a40200e87ba6b07455e6dfaa31f22
author Bram Moolenaar <Bram@vim.org>
date Fri, 01 Nov 2019 20:00:05 +0100
parents 375a7ecdb351
children
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
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
2 " Language: BIND configuration file
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
3 " Maintainer: Nick Hibma <nick@van-laarhoven.org>
18343
375a7ecdb351 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14945
diff changeset
4 " Last Change: 2019 Oct 08
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
5 " Filenames: named.conf, rndc.conf
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
6 " Location: http://www.van-laarhoven.org/vim/syntax/named.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 "
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
8 " Previously maintained by glory hump <rnd@web-drive.ru> and updated by Marcin
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
9 " Dalecki.
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
10 "
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
11 " This file could do with a lot of improvements, so comments are welcome.
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
12 " Please submit the named.conf (segment) with any comments.
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
13 "
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1121
diff changeset
14 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1121
diff changeset
15 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1121
diff changeset
21 setlocal iskeyword=.,-,48-58,A-Z,a-z,_
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1121
diff changeset
23 syn sync match namedSync grouphere NONE "^(zone|controls|acl|key)"
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
24
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 let s:save_cpo = &cpo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 set cpo-=C
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " BIND configuration file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match namedComment "//.*"
44
af1bcb9a13c0 updated for version 7.0027
vimboss
parents: 7
diff changeset
31 syn match namedComment "#.*"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn region namedComment start="/\*" end="\*/"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn region namedString start=/"/ end=/"/ contained
44
af1bcb9a13c0 updated for version 7.0027
vimboss
parents: 7
diff changeset
34 " --- omitted trailing semicolon
af1bcb9a13c0 updated for version 7.0027
vimboss
parents: 7
diff changeset
35 syn match namedError /[^;{#]$/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 " --- top-level keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword namedInclude include nextgroup=namedString skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword namedKeyword acl key nextgroup=namedIntIdent skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword namedKeyword server nextgroup=namedIdentifier skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword namedKeyword controls nextgroup=namedSection skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword namedKeyword trusted-keys nextgroup=namedIntSection skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword namedKeyword logging nextgroup=namedLogSection skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword namedKeyword options nextgroup=namedOptSection skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword namedKeyword zone nextgroup=namedZoneString skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 " --- Identifier: name of following { ... } Section
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn match namedIdentifier contained /\k\+/ nextgroup=namedSection skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 " --- IntIdent: name of following IntSection
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn match namedIntIdent contained /"\=\k\+"\=/ nextgroup=namedIntSection skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 " --- Section: { ... } clause
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn region namedSection contained start=+{+ end=+};+ contains=namedSection,namedIntKeyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 " --- IntSection: section that does not contain other sections
18343
375a7ecdb351 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14945
diff changeset
57 syn region namedIntSection contained start=+{+ end=+}+ contains=namedIntKeyword,namedError,namedComment
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 " --- IntKeyword: keywords contained within `{ ... }' sections only
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 " + these keywords are contained within `key' and `acl' sections
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword namedIntKeyword contained key algorithm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword namedIntKeyword contained secret nextgroup=namedString skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 " + these keywords are contained within `server' section only
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword namedIntKeyword contained bogus support-ixfr nextgroup=namedBool,namedNotBool skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn keyword namedIntKeyword contained transfers nextgroup=namedNumber,namedNotNumber skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword namedIntKeyword contained transfer-format
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn keyword namedIntKeyword contained keys nextgroup=namedIntSection skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 " + these keywords are contained within `controls' section only
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword namedIntKeyword contained inet nextgroup=namedIPaddr,namedIPerror skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn keyword namedIntKeyword contained unix nextgroup=namedString skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn keyword namedIntKeyword contained port perm owner group nextgroup=namedNumber,namedNotNumber skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn keyword namedIntKeyword contained allow nextgroup=namedIntSection skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
76 " + these keywords are contained within `update-policy' section only
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
77 syn keyword namedIntKeyword contained grant nextgroup=namedString skipwhite
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
78 syn keyword namedIntKeyword contained name self subdomain wildcard nextgroup=namedString skipwhite
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
79 syn keyword namedIntKeyword TXT A PTR NS SOA A6 CNAME MX ANY skipwhite
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
80
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 " --- options
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn region namedOptSection contained start=+{+ end=+};+ contains=namedOption,namedCNOption,namedComment,namedParenError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn keyword namedOption contained version directory
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 \ nextgroup=namedString skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 syn keyword namedOption contained named-xfer dump-file pid-file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 \ nextgroup=namedString skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn keyword namedOption contained mem-statistics-file statistics-file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 \ nextgroup=namedString skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 syn keyword namedOption contained auth-nxdomain deallocate-on-exit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 \ nextgroup=namedBool,namedNotBool skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 syn keyword namedOption contained dialup fake-iquery fetch-glue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 \ nextgroup=namedBool,namedNotBool skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn keyword namedOption contained has-old-clients host-statistics
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 \ nextgroup=namedBool,namedNotBool skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn keyword namedOption contained maintain-ixfr-base multiple-cnames
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 \ nextgroup=namedBool,namedNotBool skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn keyword namedOption contained notify recursion rfc2308-type1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 \ nextgroup=namedBool,namedNotBool skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syn keyword namedOption contained use-id-pool treat-cr-as-space
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 \ nextgroup=namedBool,namedNotBool skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syn keyword namedOption contained also-notify forwarders
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
103 \ nextgroup=namedIPlist skipwhite
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 syn keyword namedOption contained forward check-names
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
105 syn keyword namedOption contained allow-query allow-transfer allow-recursion
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
106 \ nextgroup=namedAML skipwhite
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 syn keyword namedOption contained blackhole listen-on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 \ nextgroup=namedIntSection skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syn keyword namedOption contained lame-ttl max-transfer-time-in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 \ nextgroup=namedNumber,namedNotNumber skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syn keyword namedOption contained max-ncache-ttl min-roots
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 \ nextgroup=namedNumber,namedNotNumber skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 syn keyword namedOption contained serial-queries transfers-in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 \ nextgroup=namedNumber,namedNotNumber skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 syn keyword namedOption contained transfers-out transfers-per-ns
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 syn keyword namedOption contained transfer-format
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 syn keyword namedOption contained transfer-source
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 \ nextgroup=namedIPaddr,namedIPerror skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 syn keyword namedOption contained max-ixfr-log-size
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 \ nextgroup=namedNumber,namedNotNumber skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 syn keyword namedOption contained coresize datasize files stacksize
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 syn keyword namedOption contained cleaning-interval interface-interval statistics-interval heartbeat-interval
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 \ nextgroup=namedNumber,namedNotNumber skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 syn keyword namedOption contained topology sortlist rrset-order
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 \ nextgroup=namedIntSection skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 syn match namedOption contained /\<query-source\s\+.*;/he=s+12 contains=namedQSKeywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 syn keyword namedQSKeywords contained address port
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 syn match namedCNOption contained /\<check-names\s\+.*;/he=s+11 contains=namedCNKeywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 syn keyword namedCNKeywords contained fail warn ignore master slave response
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 " --- logging facilities
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 syn region namedLogSection contained start=+{+ end=+};+ contains=namedLogOption
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 syn keyword namedLogOption contained channel nextgroup=namedIntIdent skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 syn keyword namedLogOption contained category nextgroup=namedIntIdent skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 syn keyword namedIntKeyword contained syslog null versions size severity
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 syn keyword namedIntKeyword contained file nextgroup=namedString skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 syn keyword namedIntKeyword contained print-category print-severity print-time nextgroup=namedBool,namedNotBool skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 " --- zone section
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 syn region namedZoneString contained oneline start=+"+ end=+"+ skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 \ contains=namedDomain,namedIllegalDom
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 \ nextgroup=namedZoneClass,namedZoneSection
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 syn keyword namedZoneClass contained in hs hesiod chaos
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 \ IN HS HESIOD CHAOS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 \ nextgroup=namedZoneSection skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 syn region namedZoneSection contained start=+{+ end=+};+ contains=namedZoneOpt,namedCNOption,namedComment,namedMasters,namedParenError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 syn keyword namedZoneOpt contained file ixfr-base
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 \ nextgroup=namedString skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 syn keyword namedZoneOpt contained notify dialup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 \ nextgroup=namedBool,namedNotBool skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 syn keyword namedZoneOpt contained pubkey forward
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 syn keyword namedZoneOpt contained max-transfer-time-in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 \ nextgroup=namedNumber,namedNotNumber skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 syn keyword namedZoneOpt contained type nextgroup=namedZoneType skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 syn keyword namedZoneType contained master slave stub forward hint
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 syn keyword namedZoneOpt contained masters forwarders
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 \ nextgroup=namedIPlist skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 syn region namedIPlist contained start=+{+ end=+};+ contains=namedIPaddr,namedIPerror,namedParenError,namedComment
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
162 syn keyword namedZoneOpt contained allow-update allow-query allow-transfer
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 \ nextgroup=namedAML skipwhite
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
164 syn keyword namedZoneOpt contained update-policy
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
165 \ nextgroup=namedIntSection skipwhite
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 " --- boolean parameter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 syn match namedNotBool contained "[^ ;]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 syn keyword namedBool contained yes no true false 1 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 " --- number parameter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 syn match namedNotNumber contained "[^ 0-9;]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 syn match namedNumber contained "\d\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 " --- address match list
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 60
diff changeset
176 syn region namedAML contained start=+{+ end=+};+ contains=namedParenError,namedComment,namedString
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 " --- IPs & Domains
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 syn match namedIPaddr contained /\<[0-9]\{1,3}\(\.[0-9]\{1,3}\)\{3};/he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 syn match namedDomain contained /\<[0-9A-Za-z][-0-9A-Za-z.]\+\>/ nextgroup=namedSpareDot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 syn match namedDomain contained /"\."/ms=s+1,me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 syn match namedSpareDot contained /\./
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 " --- syntax errors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 syn match namedIllegalDom contained /"\S*[^-A-Za-z0-9.[:space:]]\S*"/ms=s+1,me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 syn match namedIPerror contained /\<\S*[^0-9.[:space:];]\S*/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 syn match namedEParenError contained +{+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 syn match namedParenError +}\([^;]\|$\)+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1121
diff changeset
191 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
193 hi def link namedComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
194 hi def link namedInclude Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
195 hi def link namedKeyword Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
196 hi def link namedIntKeyword Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
197 hi def link namedIdentifier Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
198 hi def link namedIntIdent Identifier
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1121
diff changeset
199
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
200 hi def link namedString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
201 hi def link namedBool Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
202 hi def link namedNotBool Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
203 hi def link namedNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
204 hi def link namedNotNumber Error
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
206 hi def link namedOption namedKeyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
207 hi def link namedLogOption namedKeyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
208 hi def link namedCNOption namedKeyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
209 hi def link namedQSKeywords Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
210 hi def link namedCNKeywords Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
211 hi def link namedLogCategory Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
212 hi def link namedIPaddr Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
213 hi def link namedDomain Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
214 hi def link namedZoneOpt namedKeyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
215 hi def link namedZoneType Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
216 hi def link namedParenError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
217 hi def link namedEParenError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
218 hi def link namedIllegalDom Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
219 hi def link namedIPerror Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
220 hi def link namedSpareDot Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
221 hi def link namedError Error
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 let &cpo = s:save_cpo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 unlet s:save_cpo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 let b:current_syntax = "named"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 " vim: ts=17