Mercurial > vim
comparison runtime/syntax/resolv.vim @ 3371:8dcf3ea92b63
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 22 Feb 2012 17:30:19 +0100 |
parents | 5117153003bd |
children | 1b584a6f446c |
comparison
equal
deleted
inserted
replaced
3370:56d11b2b77eb | 3371:8dcf3ea92b63 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: resolver configuration file | 2 " Language: resolver configuration file |
3 " Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz> | 3 " Maintainer: David Necas (Yeti) <yeti@physics.muni.cz> |
4 " Original Maintaner: Radu Dineiu <littledragon@altern.org> | 4 " Original Maintaner: Radu Dineiu <littledragon@altern.org> |
5 " License: This file can be redistribued and/or modified under the same terms | 5 " License: This file can be redistribued and/or modified under the same terms |
6 " as Vim itself. | 6 " as Vim itself. |
7 " URL: http://trific.ath.cx/Ftp/vim/syntax/resolv.vim | 7 " Last Change: 2012-02-21 |
8 " Last Change: 2006-04-16 | |
9 | 8 |
10 if version < 600 | 9 if version < 600 |
11 syntax clear | 10 syntax clear |
12 elseif exists("b:current_syntax") | 11 elseif exists("b:current_syntax") |
13 finish | 12 finish |
24 syn match resolvIPSpecial /\%(127\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}\)/ contained | 23 syn match resolvIPSpecial /\%(127\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}\)/ contained |
25 | 24 |
26 " General | 25 " General |
27 syn match resolvIP contained /\%(\d\{1,4}\.\)\{3}\d\{1,4}/ contains=@resolvIPCluster | 26 syn match resolvIP contained /\%(\d\{1,4}\.\)\{3}\d\{1,4}/ contains=@resolvIPCluster |
28 syn match resolvIPNetmask contained /\%(\d\{1,4}\.\)\{3}\d\{1,4}\%(\/\%(\%(\d\{1,4}\.\)\{,3}\d\{1,4}\)\)\?/ contains=resolvOperator,@resolvIPCluster | 27 syn match resolvIPNetmask contained /\%(\d\{1,4}\.\)\{3}\d\{1,4}\%(\/\%(\%(\d\{1,4}\.\)\{,3}\d\{1,4}\)\)\?/ contains=resolvOperator,@resolvIPCluster |
29 syn match resolvHostname contained /\w\{-}\.[-0-9A-Za-z_\.]*/ | 28 syn match resolvHostname contained /\w\{-}\.[-0-9A-Za-z_.]*/ |
29 syn match resolvDomainname contained /[-0-9A-Za-z_.]\+/ | |
30 | 30 |
31 " Particular | 31 " Particular |
32 syn match resolvIPNameserver contained /\%(\%(\d\{1,4}\.\)\{3}\d\{1,4}\%(\s\|$\)\)\+/ contains=@resolvIPCluster | 32 syn match resolvIPNameserver contained /\%(\%(\d\{1,4}\.\)\{3}\d\{1,4}\%(\s\|$\)\)\+/ contains=@resolvIPCluster |
33 syn match resolvHostnameSearch contained /\%(\%([-0-9A-Za-z_]\+\.\)*[-0-9A-Za-z_]\+\.\?\%(\s\|$\)\)\+/ | 33 syn match resolvHostnameSearch contained /\%(\%([-0-9A-Za-z_]\+\.\)*[-0-9A-Za-z_]\+\.\?\%(\s\|$\)\)\+/ |
34 syn match resolvIPNetmaskSortList contained /\%(\%(\d\{1,4}\.\)\{3}\d\{1,4}\%(\/\%(\%(\d\{1,4}\.\)\{,3}\d\{1,4}\)\)\?\%(\s\|$\)\)\+/ contains=resolvOperator,@resolvIPCluster | 34 syn match resolvIPNetmaskSortList contained /\%(\%(\d\{1,4}\.\)\{3}\d\{1,4}\%(\/\%(\%(\d\{1,4}\.\)\{,3}\d\{1,4}\)\)\?\%(\s\|$\)\)\+/ contains=resolvOperator,@resolvIPCluster |
35 | 35 |
36 " Identifiers | 36 " Identifiers |
37 syn match resolvNameserver /^\s*nameserver\>/ nextgroup=resolvIPNameserver skipwhite | 37 syn match resolvNameserver /^\s*nameserver\>/ nextgroup=resolvIPNameserver skipwhite |
38 syn match resolvLwserver /^\s*lwserver\>/ nextgroup=resolvIPNameserver skipwhite | 38 syn match resolvLwserver /^\s*lwserver\>/ nextgroup=resolvIPNameserver skipwhite |
39 syn match resolvDomain /^\s*domain\>/ nextgroup=resolvHostname skipwhite | 39 syn match resolvDomain /^\s*domain\>/ nextgroup=resolvDomainname skipwhite |
40 syn match resolvSearch /^\s*search\>/ nextgroup=resolvHostnameSearch skipwhite | 40 syn match resolvSearch /^\s*search\>/ nextgroup=resolvHostnameSearch skipwhite |
41 syn match resolvSortList /^\s*sortlist\>/ nextgroup=resolvIPNetmaskSortList skipwhite | 41 syn match resolvSortList /^\s*sortlist\>/ nextgroup=resolvIPNetmaskSortList skipwhite |
42 syn match resolvOptions /^\s*options\>/ nextgroup=resolvOption skipwhite | 42 syn match resolvOptions /^\s*options\>/ nextgroup=resolvOption skipwhite |
43 | 43 |
44 " Options | 44 " Options |
59 endif | 59 endif |
60 | 60 |
61 HiLink resolvIP Number | 61 HiLink resolvIP Number |
62 HiLink resolvIPNetmask Number | 62 HiLink resolvIPNetmask Number |
63 HiLink resolvHostname String | 63 HiLink resolvHostname String |
64 HiLink resolvDomainname String | |
64 HiLink resolvOption String | 65 HiLink resolvOption String |
65 | 66 |
66 HiLink resolvIPNameserver Number | 67 HiLink resolvIPNameserver Number |
67 HiLink resolvHostnameSearch String | 68 HiLink resolvHostnameSearch String |
68 HiLink resolvIPNetmaskSortList Number | 69 HiLink resolvIPNetmaskSortList Number |