annotate runtime/syntax/resolv.vim @ 7428:a4838cba1f48 v7.4.1018

commit https://github.com/vim/vim/commit/af2dff8fbc0e0c1dd7cb5ae058c3b896c28f7d24 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 1 14:57:51 2016 +0100 patch 7.4.1018 Problem: Failure running tests. Solution: Add missing change to list of old style tests.
author Christian Brabandt <cb@256bit.org>
date Fri, 01 Jan 2016 15:00:04 +0100
parents 605c9ce57ec3
children 43efa4f5a8ea
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
834
5117153003bd updated for version 7.0e
vimboss
parents: 7
diff changeset
2 " Language: resolver configuration file
4502
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
3 " Maintainer: Radu Dineiu <radu.dineiu@gmail.com>
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
4 " URL: https://raw.github.com/rid9/vim-resolv/master/resolv.vim
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
5 " Last Change: 2013 May 21
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
6 " Version: 1.0
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
7 "
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
8 " Credits:
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
9 " David Necas (Yeti) <yeti@physics.muni.cz>
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
10 " Stefano Zacchiroli <zack@debian.org>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Errors, comments and operators
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match resolvError /./
4502
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
20 syn match resolvComment /\s*[#;].*$/
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
21 syn match resolvOperator /[\/:]/ contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " IP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn cluster resolvIPCluster contains=resolvIPError,resolvIPSpecial
4502
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
25 syn match resolvIPError /\%(\d\{4,}\|25[6-9]\|2[6-9]\d\|[3-9]\d\{2}\)[\.0-9]*/ contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match resolvIPSpecial /\%(127\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}\)/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " General
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match resolvIP contained /\%(\d\{1,4}\.\)\{3}\d\{1,4}/ contains=@resolvIPCluster
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match resolvIPNetmask contained /\%(\d\{1,4}\.\)\{3}\d\{1,4}\%(\/\%(\%(\d\{1,4}\.\)\{,3}\d\{1,4}\)\)\?/ contains=resolvOperator,@resolvIPCluster
4502
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
31 syn match resolvHostname contained /\w\{-}\.[-0-9A-Za-z_\.]*/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 " Particular
834
5117153003bd updated for version 7.0e
vimboss
parents: 7
diff changeset
34 syn match resolvIPNameserver contained /\%(\%(\d\{1,4}\.\)\{3}\d\{1,4}\%(\s\|$\)\)\+/ contains=@resolvIPCluster
5117153003bd updated for version 7.0e
vimboss
parents: 7
diff changeset
35 syn match resolvHostnameSearch contained /\%(\%([-0-9A-Za-z_]\+\.\)*[-0-9A-Za-z_]\+\.\?\%(\s\|$\)\)\+/
5117153003bd updated for version 7.0e
vimboss
parents: 7
diff changeset
36 syn match resolvIPNetmaskSortList contained /\%(\%(\d\{1,4}\.\)\{3}\d\{1,4}\%(\/\%(\%(\d\{1,4}\.\)\{,3}\d\{1,4}\)\)\?\%(\s\|$\)\)\+/ contains=resolvOperator,@resolvIPCluster
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " Identifiers
834
5117153003bd updated for version 7.0e
vimboss
parents: 7
diff changeset
39 syn match resolvNameserver /^\s*nameserver\>/ nextgroup=resolvIPNameserver skipwhite
5117153003bd updated for version 7.0e
vimboss
parents: 7
diff changeset
40 syn match resolvLwserver /^\s*lwserver\>/ nextgroup=resolvIPNameserver skipwhite
3513
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3371
diff changeset
41 syn match resolvDomain /^\s*domain\>/ nextgroup=resolvHostname skipwhite
834
5117153003bd updated for version 7.0e
vimboss
parents: 7
diff changeset
42 syn match resolvSearch /^\s*search\>/ nextgroup=resolvHostnameSearch skipwhite
5117153003bd updated for version 7.0e
vimboss
parents: 7
diff changeset
43 syn match resolvSortList /^\s*sortlist\>/ nextgroup=resolvIPNetmaskSortList skipwhite
5117153003bd updated for version 7.0e
vimboss
parents: 7
diff changeset
44 syn match resolvOptions /^\s*options\>/ nextgroup=resolvOption skipwhite
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 " Options
834
5117153003bd updated for version 7.0e
vimboss
parents: 7
diff changeset
47 syn match resolvOption /\<\%(debug\|no_tld_query\|rotate\|no-check-names\|inet6\)\>/ contained nextgroup=resolvOption skipwhite
5117153003bd updated for version 7.0e
vimboss
parents: 7
diff changeset
48 syn match resolvOption /\<\%(ndots\|timeout\|attempts\):\d\+\>/ contained contains=resolvOperator nextgroup=resolvOption skipwhite
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 " Additional errors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn match resolvError /^search .\{257,}/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 if version >= 508 || !exists("did_config_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 let did_config_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 command! -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 command! -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 HiLink resolvIP Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 HiLink resolvIPNetmask Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 HiLink resolvHostname String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 HiLink resolvOption String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 HiLink resolvIPNameserver Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 HiLink resolvHostnameSearch String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 HiLink resolvIPNetmaskSortList Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 HiLink resolvNameServer Identifier
834
5117153003bd updated for version 7.0e
vimboss
parents: 7
diff changeset
71 HiLink resolvLwserver Identifier
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 HiLink resolvDomain Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 HiLink resolvSearch Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 HiLink resolvSortList Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 HiLink resolvOptions Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 HiLink resolvComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 HiLink resolvOperator Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 HiLink resolvError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 HiLink resolvIPError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 HiLink resolvIPSpecial Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 let b:current_syntax = "resolv"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 " vim: ts=8 ft=vim