comparison runtime/syntax/resolv.vim @ 10048:43efa4f5a8ea

commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 30 23:26:57 2016 +0200 Updated runtime files. Remove version checks for Vim older than 6.0.
author Christian Brabandt <cb@256bit.org>
date Tue, 30 Aug 2016 23:30:09 +0200
parents 605c9ce57ec3
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
7 " 7 "
8 " Credits: 8 " Credits:
9 " David Necas (Yeti) <yeti@physics.muni.cz> 9 " David Necas (Yeti) <yeti@physics.muni.cz>
10 " Stefano Zacchiroli <zack@debian.org> 10 " Stefano Zacchiroli <zack@debian.org>
11 11
12 if version < 600 12 " quit when a syntax file was already loaded
13 syntax clear 13 if exists("b:current_syntax")
14 elseif exists("b:current_syntax")
15 finish 14 finish
16 endif 15 endif
17 16
18 " Errors, comments and operators 17 " Errors, comments and operators
19 syn match resolvError /./ 18 syn match resolvError /./
48 syn match resolvOption /\<\%(ndots\|timeout\|attempts\):\d\+\>/ contained contains=resolvOperator nextgroup=resolvOption skipwhite 47 syn match resolvOption /\<\%(ndots\|timeout\|attempts\):\d\+\>/ contained contains=resolvOperator nextgroup=resolvOption skipwhite
49 48
50 " Additional errors 49 " Additional errors
51 syn match resolvError /^search .\{257,}/ 50 syn match resolvError /^search .\{257,}/
52 51
53 if version >= 508 || !exists("did_config_syntax_inits") 52 command! -nargs=+ HiLink hi def link <args>
54 if version < 508
55 let did_config_syntax_inits = 1
56 command! -nargs=+ HiLink hi link <args>
57 else
58 command! -nargs=+ HiLink hi def link <args>
59 endif
60 53
61 HiLink resolvIP Number 54 HiLink resolvIP Number
62 HiLink resolvIPNetmask Number 55 HiLink resolvIPNetmask Number
63 HiLink resolvHostname String 56 HiLink resolvHostname String
64 HiLink resolvOption String 57 HiLink resolvOption String
65 58
66 HiLink resolvIPNameserver Number 59 HiLink resolvIPNameserver Number
67 HiLink resolvHostnameSearch String 60 HiLink resolvHostnameSearch String
68 HiLink resolvIPNetmaskSortList Number 61 HiLink resolvIPNetmaskSortList Number
69 62
70 HiLink resolvNameServer Identifier 63 HiLink resolvNameServer Identifier
71 HiLink resolvLwserver Identifier 64 HiLink resolvLwserver Identifier
72 HiLink resolvDomain Identifier 65 HiLink resolvDomain Identifier
73 HiLink resolvSearch Identifier 66 HiLink resolvSearch Identifier
74 HiLink resolvSortList Identifier 67 HiLink resolvSortList Identifier
75 HiLink resolvOptions Identifier 68 HiLink resolvOptions Identifier
76 69
77 HiLink resolvComment Comment 70 HiLink resolvComment Comment
78 HiLink resolvOperator Operator 71 HiLink resolvOperator Operator
79 HiLink resolvError Error 72 HiLink resolvError Error
80 HiLink resolvIPError Error 73 HiLink resolvIPError Error
81 HiLink resolvIPSpecial Special 74 HiLink resolvIPSpecial Special
82 75
83 delcommand HiLink 76 delcommand HiLink
84 endif
85 77
86 let b:current_syntax = "resolv" 78 let b:current_syntax = "resolv"
87 79
88 " vim: ts=8 ft=vim 80 " vim: ts=8 ft=vim