summaryrefslogtreecommitdiff
path: root/runtime/syntax/wml.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-08-30 23:26:57 +0200
committerBram Moolenaar <Bram@vim.org>2016-08-30 23:26:57 +0200
commit89bcfda6834aba724d12554a34b9ed49f5789fd5 (patch)
tree2ffddcadaae9d061e38e17a09b2635ec199eb1dd /runtime/syntax/wml.vim
parent4792255eff03760dca0fd014616532e6d47db364 (diff)
downloadvim-git-89bcfda6834aba724d12554a34b9ed49f5789fd5.tar.gz
Updated runtime files. Remove version checks for Vim older than 6.0.
Diffstat (limited to 'runtime/syntax/wml.vim')
-rw-r--r--runtime/syntax/wml.vim62
1 files changed, 21 insertions, 41 deletions
diff --git a/runtime/syntax/wml.vim b/runtime/syntax/wml.vim
index 5957930c8..b9169d003 100644
--- a/runtime/syntax/wml.vim
+++ b/runtime/syntax/wml.vim
@@ -16,21 +16,14 @@
" vim-package around your corner :)
-" For version 5.x: Clear all syntax items
-" For version 6.x: Quit when a syntax file was already loaded
-if version < 600
- syn clear
-elseif exists("b:current_syntax")
+" quit when a syntax file was already loaded
+if exists("b:current_syntax")
finish
endif
" A lot of the web stuff looks like HTML so we load that first
-if version < 600
- so <sfile>:p:h/html.vim
-else
- runtime! syntax/html.vim
-endif
+runtime! syntax/html.vim
unlet b:current_syntax
if !exists("main_syntax")
@@ -108,11 +101,7 @@ syn region htmlTagName start="\<\(define-tag\|define-region\)" end="\>" cont
" The perl include stuff
if main_syntax != 'perl'
" Perl script
- if version < 600
- syn include @wmlPerlScript <sfile>:p:h/perl.vim
- else
- syn include @wmlPerlScript syntax/perl.vim
- endif
+ syn include @wmlPerlScript syntax/perl.vim
unlet b:current_syntax
syn region perlScript start=+<perl>+ keepend end=+</perl>+ contains=@wmlPerlScript,wmlPerlTag
@@ -140,33 +129,24 @@ if main_syntax == "html"
endif
" 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_wml_syn_inits")
- let did_wml_syn_inits = 1
- if version < 508
- let did_wml_syn_inits = 1
- command -nargs=+ HiLink hi link <args>
- else
- command -nargs=+ HiLink hi def link <args>
- endif
-
- HiLink wmlNextLine Special
- HiLink wmlUse Include
- HiLink wmlUsed String
- HiLink wmlBody Special
- HiLink wmlDiverted Label
- HiLink wmlDivert Delimiter
- HiLink wmlDivertEnd Delimiter
- HiLink wmlLocationId Label
- HiLink wmlLocation Delimiter
+" Only when an item doesn't have highlighting yet
+command -nargs=+ HiLink hi def link <args>
+
+HiLink wmlNextLine Special
+HiLink wmlUse Include
+HiLink wmlUsed String
+HiLink wmlBody Special
+HiLink wmlDiverted Label
+HiLink wmlDivert Delimiter
+HiLink wmlDivertEnd Delimiter
+HiLink wmlLocationId Label
+HiLink wmlLocation Delimiter
" HiLink wmlLocationed Delimiter
- HiLink wmlDefineName String
- HiLink wmlComment Comment
- HiLink wmlInclude Include
- HiLink wmlSharpBang PreProc
+HiLink wmlDefineName String
+HiLink wmlComment Comment
+HiLink wmlInclude Include
+HiLink wmlSharpBang PreProc
- delcommand HiLink
-endif
+delcommand HiLink
let b:current_syntax = "wml"