Mercurial > vim
comparison runtime/syntax/bindzone.vim @ 2965:f2de38a019a2
Updated runtime files.
Add missing test82 files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 18 Jul 2011 19:40:27 +0200 |
parents | 7bc41231fbc7 |
children | 43efa4f5a8ea |
comparison
equal
deleted
inserted
replaced
2964:39cb812cf477 | 2965:f2de38a019a2 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: BIND zone files (RFC1035) | 2 " Language: BIND zone files (RFC 1035) |
3 " Maintainer: Julian Mehnle <julian@mehnle.net> | 3 " Maintainer: Julian Mehnle <julian@mehnle.net> |
4 " URL: http://www.mehnle.net/source/odds+ends/vim/syntax/ | 4 " URL: http://www.mehnle.net/source/odds+ends/vim/syntax/ |
5 " Last Change: Thu 2006-04-20 12:30:45 UTC | 5 " Last Change: Thu 2011-07-16 20:42:00 UTC |
6 " | 6 " |
7 " Based on an earlier version by Вячеслав Горбанев (Slava Gorbanev), with | 7 " Based on an earlier version by Вячеслав Горбанев (Slava Gorbanev), with |
8 " heavy modifications. | 8 " heavy modifications. |
9 " | 9 " |
10 " $Id: bindzone.vim,v 1.2 2006/04/20 22:06:21 vimboss Exp $ | 10 " $Id: bindzone.vim 12 2011-07-16 21:09:57Z julian $ |
11 | 11 |
12 " For version 5.x: Clear all syntax items | 12 " For version 5.x: Clear all syntax items |
13 " For version 6.x: Quit when a syntax file was already loaded | 13 " For version 6.x: Quit when a syntax file was already loaded |
14 if version < 600 | 14 if version < 600 |
15 syntax clear | 15 syntax clear |
21 | 21 |
22 " Directives | 22 " Directives |
23 syn region zoneRRecord start=/^/ end=/$/ contains=zoneOwnerName,zoneSpecial,zoneTTL,zoneClass,zoneRRType,zoneComment,zoneUnknown | 23 syn region zoneRRecord start=/^/ end=/$/ contains=zoneOwnerName,zoneSpecial,zoneTTL,zoneClass,zoneRRType,zoneComment,zoneUnknown |
24 | 24 |
25 syn match zoneDirective /^\$ORIGIN\s\+/ nextgroup=zoneOrigin,zoneUnknown | 25 syn match zoneDirective /^\$ORIGIN\s\+/ nextgroup=zoneOrigin,zoneUnknown |
26 syn match zoneDirective /^\$TTL\s\+/ nextgroup=zoneNumber,zoneUnknown | 26 syn match zoneDirective /^\$TTL\s\+/ nextgroup=zoneTTL,zoneUnknown |
27 syn match zoneDirective /^\$INCLUDE\s\+/ nextgroup=zoneText,zoneUnknown | 27 syn match zoneDirective /^\$INCLUDE\s\+/ nextgroup=zoneText,zoneUnknown |
28 syn match zoneDirective /^\$GENERATE\s/ | 28 syn match zoneDirective /^\$GENERATE\s/ |
29 | 29 |
30 syn match zoneUnknown contained /\S\+/ | 30 syn match zoneUnknown contained /\S\+/ |
31 | 31 |
32 syn match zoneOwnerName contained /^[^[:space:]!"#$%&'()*+,\/:;<=>?@[\]\^`{|}~]\+\(\s\|;\)\@=/ nextgroup=zoneTTL,zoneClass,zoneRRType skipwhite | 32 syn match zoneOwnerName contained /^[^[:space:]!"#$%&'()*+,\/:;<=>?@[\]\^`{|}~]\+\(\s\|;\)\@=/ nextgroup=zoneTTL,zoneClass,zoneRRType skipwhite |
33 syn match zoneOrigin contained /[^[:space:]!"#$%&'()*+,\/:;<=>?@[\]\^`{|}~]\+\(\s\|;\|$\)\@=/ | 33 syn match zoneOrigin contained /[^[:space:]!"#$%&'()*+,\/:;<=>?@[\]\^`{|}~]\+\(\s\|;\|$\)\@=/ |
34 syn match zoneDomain contained /[^[:space:]!"#$%&'()*+,\/:;<=>?@[\]\^`{|}~]\+\(\s\|;\|$\)\@=/ | 34 syn match zoneDomain contained /[^[:space:]!"#$%&'()*+,\/:;<=>?@[\]\^`{|}~]\+\(\s\|;\|$\)\@=/ |
35 | 35 |
36 syn match zoneSpecial contained /^[@*.]\s/ | 36 syn match zoneSpecial contained /^[@*.]\s/ |
37 syn match zoneTTL contained /\<\d[0-9HhWwDd]*\>/ nextgroup=zoneClass,zoneRRType skipwhite | 37 syn match zoneTTL contained /\s\@<=\d[0-9WwDdHhMmSs]*\(\s\|$\)\@=/ nextgroup=zoneClass,zoneRRType skipwhite |
38 syn keyword zoneClass contained IN CHAOS nextgroup=zoneRRType,zoneTTL skipwhite | 38 syn keyword zoneClass contained IN CHAOS nextgroup=zoneRRType,zoneTTL skipwhite |
39 syn keyword zoneRRType contained A AAAA CNAME HINFO MX NS PTR SOA SRV TXT nextgroup=zoneRData skipwhite | 39 syn keyword zoneRRType contained A AAAA CNAME DNAME HINFO MX NS PTR SOA SRV TXT SPF nextgroup=zoneRData skipwhite |
40 syn match zoneRData contained /[^;]*/ contains=zoneDomain,zoneIPAddr,zoneIP6Addr,zoneText,zoneNumber,zoneParen,zoneUnknown | 40 syn match zoneRData contained /[^;]*/ contains=zoneDomain,zoneIPAddr,zoneIP6Addr,zoneText,zoneNumber,zoneParen,zoneUnknown |
41 | 41 |
42 syn match zoneIPAddr contained /\<[0-9]\{1,3}\(\.[0-9]\{1,3}\)\{,3}\>/ | 42 syn match zoneIPAddr contained /\<[0-9]\{1,3}\(\.[0-9]\{1,3}\)\{,3}\>/ |
43 | 43 |
44 " Plain IPv6 address IPv6-embedded-IPv4 address | 44 " Plain IPv6 address IPv6-embedded-IPv4 address |
64 syn match zoneText contained /"\([^"\\]\|\\.\)*"\(\s\|;\|$\)\@=/ | 64 syn match zoneText contained /"\([^"\\]\|\\.\)*"\(\s\|;\|$\)\@=/ |
65 syn match zoneNumber contained /\<[0-9]\+\(\s\|;\|$\)\@=/ | 65 syn match zoneNumber contained /\<[0-9]\+\(\s\|;\|$\)\@=/ |
66 syn match zoneSerial contained /\<[0-9]\{9,10}\(\s\|;\|$\)\@=/ | 66 syn match zoneSerial contained /\<[0-9]\{9,10}\(\s\|;\|$\)\@=/ |
67 | 67 |
68 syn match zoneErrParen /)/ | 68 syn match zoneErrParen /)/ |
69 syn region zoneParen contained start="(" end=")" contains=zoneSerial,zoneNumber,zoneComment | 69 syn region zoneParen contained start="(" end=")" contains=zoneSerial,zoneTTL,zoneNumber,zoneComment |
70 syn match zoneComment /;.*/ | 70 syn match zoneComment /;.*/ |
71 | 71 |
72 " Define the default highlighting. | 72 " Define the default highlighting. |
73 " For version 5.7 and earlier: only when not done already | 73 " For version 5.7 and earlier: only when not done already |
74 " For version 5.8 and later: only when an item doesn't have highlighting yet | 74 " For version 5.8 and later: only when an item doesn't have highlighting yet |