aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/resolv.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/syntax/resolv.vim')
-rw-r--r--runtime/syntax/resolv.vim60
1 files changed, 25 insertions, 35 deletions
diff --git a/runtime/syntax/resolv.vim b/runtime/syntax/resolv.vim
index 06d6885c1c..a879116a5f 100644
--- a/runtime/syntax/resolv.vim
+++ b/runtime/syntax/resolv.vim
@@ -9,9 +9,8 @@
" David Necas (Yeti) <yeti@physics.muni.cz>
" Stefano Zacchiroli <zack@debian.org>
-if version < 600
- syntax clear
-elseif exists("b:current_syntax")
+" quit when a syntax file was already loaded
+if exists("b:current_syntax")
finish
endif
@@ -50,38 +49,29 @@ syn match resolvOption /\<\%(ndots\|timeout\|attempts\):\d\+\>/ contained contai
" Additional errors
syn match resolvError /^search .\{257,}/
-if version >= 508 || !exists("did_config_syntax_inits")
- if version < 508
- let did_config_syntax_inits = 1
- command! -nargs=+ HiLink hi link <args>
- else
- command! -nargs=+ HiLink hi def link <args>
- endif
-
- HiLink resolvIP Number
- HiLink resolvIPNetmask Number
- HiLink resolvHostname String
- HiLink resolvOption String
-
- HiLink resolvIPNameserver Number
- HiLink resolvHostnameSearch String
- HiLink resolvIPNetmaskSortList Number
-
- HiLink resolvNameServer Identifier
- HiLink resolvLwserver Identifier
- HiLink resolvDomain Identifier
- HiLink resolvSearch Identifier
- HiLink resolvSortList Identifier
- HiLink resolvOptions Identifier
-
- HiLink resolvComment Comment
- HiLink resolvOperator Operator
- HiLink resolvError Error
- HiLink resolvIPError Error
- HiLink resolvIPSpecial Special
-
- delcommand HiLink
-endif
+
+hi def link resolvIP Number
+hi def link resolvIPNetmask Number
+hi def link resolvHostname String
+hi def link resolvOption String
+
+hi def link resolvIPNameserver Number
+hi def link resolvHostnameSearch String
+hi def link resolvIPNetmaskSortList Number
+
+hi def link resolvNameServer Identifier
+hi def link resolvLwserver Identifier
+hi def link resolvDomain Identifier
+hi def link resolvSearch Identifier
+hi def link resolvSortList Identifier
+hi def link resolvOptions Identifier
+
+hi def link resolvComment Comment
+hi def link resolvOperator Operator
+hi def link resolvError Error
+hi def link resolvIPError Error
+hi def link resolvIPSpecial Special
+
let b:current_syntax = "resolv"