summaryrefslogtreecommitdiff
path: root/runtime/syntax/ldif.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/syntax/ldif.vim')
-rw-r--r--runtime/syntax/ldif.vim34
1 files changed, 13 insertions, 21 deletions
diff --git a/runtime/syntax/ldif.vim b/runtime/syntax/ldif.vim
index 9f67b57f5..704a590ec 100644
--- a/runtime/syntax/ldif.vim
+++ b/runtime/syntax/ldif.vim
@@ -3,9 +3,8 @@
" Maintainer: Zak Johnson <zakj@nox.cx>
" Last Change: 2003-12-30
-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
@@ -21,23 +20,16 @@ syn region ldifFileValue matchgroup=ldifPunctuation start=/:< / end=/\_$/ skip
syn region ldifComment start=/^#/ end=/\_$/ skip=/\n /
-if version >= 508 || !exists("did_ldif_syn_inits")
- if version < 508
- let did_ldif_syn_inits = 1
- command -nargs=+ HiLink hi link <args>
- else
- command -nargs=+ HiLink hi def link <args>
- endif
-
- HiLink ldifAttribute Type
- HiLink ldifOption Identifier
- HiLink ldifPunctuation Normal
- HiLink ldifStringValue String
- HiLink ldifBase64Value Special
- HiLink ldifFileValue Special
- HiLink ldifComment Comment
-
- delcommand HiLink
-endif
+command -nargs=+ HiLink hi def link <args>
+
+HiLink ldifAttribute Type
+HiLink ldifOption Identifier
+HiLink ldifPunctuation Normal
+HiLink ldifStringValue String
+HiLink ldifBase64Value Special
+HiLink ldifFileValue Special
+HiLink ldifComment Comment
+
+delcommand HiLink
let b:current_syntax = "ldif"