summaryrefslogtreecommitdiff
path: root/runtime/syntax/dracula.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/syntax/dracula.vim')
-rw-r--r--runtime/syntax/dracula.vim31
1 files changed, 10 insertions, 21 deletions
diff --git a/runtime/syntax/dracula.vim b/runtime/syntax/dracula.vim
index 6a3806028..b60e4846e 100644
--- a/runtime/syntax/dracula.vim
+++ b/runtime/syntax/dracula.vim
@@ -8,11 +8,8 @@
" the purposes of Design Rule Checking, Layout vs. Schematic
" verification, and Layout Parameter Extraction.
-" For version 5.x: Clear all syntax items
-" For version 6.x: Quit when a syntax file was already loaded
-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
@@ -61,24 +58,16 @@ syn match draculaPreProc "^#.*"
syn sync lines=50
" Define the default highlighting.
-" For version 5.7 and earlier: only when not done already
-" For version 5.8 and later: only when an item doesn't have highlighting yet
-if version >= 508 || !exists("did_dracula_syn_inits")
- if version < 508
- let did_dracula_syn_inits = 1
- command -nargs=+ HiLink hi link <args>
- else
- command -nargs=+ HiLink hi def link <args>
- endif
+" Only when an item doesn't have highlighting yet
+command -nargs=+ HiLink hi def link <args>
- HiLink draculaIdentifier Identifier
- HiLink draculaStatement Statement
- HiLink draculaType Type
- HiLink draculaComment Comment
- HiLink draculaPreProc PreProc
+HiLink draculaIdentifier Identifier
+HiLink draculaStatement Statement
+HiLink draculaType Type
+HiLink draculaComment Comment
+HiLink draculaPreProc PreProc
- delcommand HiLink
-endif
+delcommand HiLink
let b:current_syntax = "dracula"