vim-patch:89bcfda6834a

Updated runtime files.  Remove version checks for Vim older than 6.0.

89bcfda683
This commit is contained in:
Justin M. Keyes
2017-04-28 21:06:44 +02:00
parent f09651ea78
commit a53409b564
420 changed files with 9255 additions and 12890 deletions

View File

@@ -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
" 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 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"