annotate runtime/syntax/dns.vim @ 481:66080ac5dab7 v7.0130

updated for version 7.0130
author vimboss
date Mon, 15 Aug 2005 21:41:48 +0000
parents 3fc0f57ecb91
children 111e109dad13
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: DNS/BIND Zone File
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: jehsom@jehsom.com
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: http://scripts.jehsom.com
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last Change: 2001 Sep 02
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " Last match is taken!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn match dnsKeyword "\<\(IN\|A\|SOA\|NS\|CNAME\|MX\|PTR\|SOA\|MB\|MG\|MR\|NULL\|WKS\|HINFO\|TXT\|CS\|CH\|CPU\|OS\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn match dnsRecordName "^[^ ]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn match dnsPreProc "^\$[^ ]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match dnsComment ";.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match dnsDataFQDN "\<[^ ]*\.[ ]*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match dnsConstant "\<\([0-9][0-9.]*\|[0-9.]*[0-9]\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match dnsIPaddr "\<\(\([0-2]\)\{0,1}\([0-9]\)\{1,2}\.\)\{3}\([0-2]\)\{0,1}\([0-9]\)\{1,2}\>[ ]*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " 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
27 if version >= 508 || !exists("did_dns_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 let did_dns_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 HiLink dnsComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 HiLink dnsDataFQDN Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 HiLink dnsPreProc PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 HiLink dnsKeyword Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 HiLink dnsRecordName Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 HiLink dnsIPaddr Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 HiLink dnsIPerr Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 HiLink dnsConstant Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 let b:current_syntax = "dns"