annotate runtime/syntax/named.vim @ 1106:6c4da3e24371 v7.0.232

updated for version 7.0-232
author vimboss
date Thu, 26 Apr 2007 16:20:50 +0000
parents bd6c24f96e69
children e63691e7c504
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: BIND 8.x configuration file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: glory hump <rnd@web-drive.ru>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last change: Mon May 21 04:51:01 SAMST 2001
60
bd6c24f96e69 updated for version 7.0030
vimboss
parents: 44
diff changeset
5 " Updated: by Marcin Dalecki 2004-12-31
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Filenames: named.conf
44
af1bcb9a13c0 updated for version 7.0027
vimboss
parents: 7
diff changeset
7 " URL: http://rnd.web-drive.ru/vim/syntax/named.vim [DEFUNCT]
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " $Id$
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " NOTE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " it was not widely tested, i just tried it on my simple
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " single-master-single-slave configuration. most syntax was borrowed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " directly from "BIND Configuration File Guide" without testing.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 if version >= 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 setlocal iskeyword=.,-,48-58,A-Z,a-z,_
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 set iskeyword=.,-,48-58,A-Z,a-z,_
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 let s:save_cpo = &cpo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 set cpo-=C
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " BIND configuration file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match namedComment "//.*"
44
af1bcb9a13c0 updated for version 7.0027
vimboss
parents: 7
diff changeset
37 syn match namedComment "#.*"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn region namedComment start="/\*" end="\*/"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn region namedString start=/"/ end=/"/ contained
44
af1bcb9a13c0 updated for version 7.0027
vimboss
parents: 7
diff changeset
40 " --- omitted trailing semicolon
af1bcb9a13c0 updated for version 7.0027
vimboss
parents: 7
diff changeset
41 syn match namedError /[^;{#]$/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 " --- top-level keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword namedInclude include nextgroup=namedString skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword namedKeyword acl key nextgroup=namedIntIdent skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword namedKeyword server nextgroup=namedIdentifier skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword namedKeyword controls nextgroup=namedSection skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword namedKeyword trusted-keys nextgroup=namedIntSection skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword namedKeyword logging nextgroup=namedLogSection skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword namedKeyword options nextgroup=namedOptSection skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword namedKeyword zone nextgroup=namedZoneString skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 " --- Identifier: name of following { ... } Section
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn match namedIdentifier contained /\k\+/ nextgroup=namedSection skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 " --- IntIdent: name of following IntSection
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn match namedIntIdent contained /"\=\k\+"\=/ nextgroup=namedIntSection skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 " --- Section: { ... } clause
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn region namedSection contained start=+{+ end=+};+ contains=namedSection,namedIntKeyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 " --- IntSection: section that does not contain other sections
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn region namedIntSection contained start=+{+ end=+}+ contains=namedIntKeyword,namedError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 " --- IntKeyword: keywords contained within `{ ... }' sections only
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 " + these keywords are contained within `key' and `acl' sections
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword namedIntKeyword contained key algorithm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn keyword namedIntKeyword contained secret nextgroup=namedString 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 `server' section only
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword namedIntKeyword contained bogus support-ixfr nextgroup=namedBool,namedNotBool skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn keyword namedIntKeyword contained transfers nextgroup=namedNumber,namedNotNumber skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn keyword namedIntKeyword contained transfer-format
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn keyword namedIntKeyword contained keys nextgroup=namedIntSection skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 " + these keywords are contained within `controls' section only
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn keyword namedIntKeyword contained inet nextgroup=namedIPaddr,namedIPerror skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn keyword namedIntKeyword contained unix nextgroup=namedString skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn keyword namedIntKeyword contained port perm owner group nextgroup=namedNumber,namedNotNumber skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn keyword namedIntKeyword contained allow nextgroup=namedIntSection skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 " --- options
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn region namedOptSection contained start=+{+ end=+};+ contains=namedOption,namedCNOption,namedComment,namedParenError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn keyword namedOption contained version directory
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 \ nextgroup=namedString skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 syn keyword namedOption contained named-xfer dump-file pid-file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 \ nextgroup=namedString skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 syn keyword namedOption contained mem-statistics-file statistics-file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 \ nextgroup=namedString skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 syn keyword namedOption contained auth-nxdomain deallocate-on-exit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 \ nextgroup=namedBool,namedNotBool skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 syn keyword namedOption contained dialup fake-iquery fetch-glue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 \ nextgroup=namedBool,namedNotBool skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syn keyword namedOption contained has-old-clients host-statistics
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 \ nextgroup=namedBool,namedNotBool skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 syn keyword namedOption contained maintain-ixfr-base multiple-cnames
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 \ nextgroup=namedBool,namedNotBool skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn keyword namedOption contained notify recursion rfc2308-type1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 \ nextgroup=namedBool,namedNotBool skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn keyword namedOption contained use-id-pool treat-cr-as-space
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 \ nextgroup=namedBool,namedNotBool skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 syn keyword namedOption contained also-notify forwarders
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 \ nextgroup=namedIntSection skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syn keyword namedOption contained forward check-names
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn keyword namedOption contained allow-query allow-transfer allow-recursion nextgroup=namedAML skipwhite
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 syn match namedZoneOpt contained "\<allow-\(update\|query\|transfer\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 \ nextgroup=namedAML skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 " --- boolean parameter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 syn match namedNotBool contained "[^ ;]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 syn keyword namedBool contained yes no true false 1 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 " --- number parameter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 syn match namedNotNumber contained "[^ 0-9;]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 syn match namedNumber contained "\d\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 " --- address match list
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 syn region namedAML contained start=+{+ end=+};+ contains=namedParenError,namedComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 " --- IPs & Domains
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 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
178 syn match namedDomain contained /\<[0-9A-Za-z][-0-9A-Za-z.]\+\>/ nextgroup=namedSpareDot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 syn match namedDomain contained /"\."/ms=s+1,me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 syn match namedSpareDot contained /\./
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 " --- syntax errors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 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
184 syn match namedIPerror contained /\<\S*[^0-9.[:space:];]\S*/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 syn match namedEParenError contained +{+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 syn match namedParenError +}\([^;]\|$\)+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 " 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
191 if version >= 508 || !exists("did_named_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 let did_named_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 HiLink namedComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 HiLink namedInclude Include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 HiLink namedKeyword Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 HiLink namedIntKeyword Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 HiLink namedIdentifier Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 HiLink namedIntIdent Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 HiLink namedString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 HiLink namedBool Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 HiLink namedNotBool Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 HiLink namedNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 HiLink namedNotNumber Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 HiLink namedOption namedKeyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 HiLink namedLogOption namedKeyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 HiLink namedCNOption namedKeyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 HiLink namedQSKeywords Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 HiLink namedCNKeywords Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 HiLink namedLogCategory Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 HiLink namedDomain Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 HiLink namedZoneOpt namedKeyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 HiLink namedZoneType Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 HiLink namedParenError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 HiLink namedEParenError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 HiLink namedIllegalDom Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 HiLink namedIPerror Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 HiLink namedSpareDot Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 HiLink namedError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 let &cpo = s:save_cpo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 unlet s:save_cpo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 let b:current_syntax = "named"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 " vim: ts=17