vim: drop vim v5.x compatibility
authorBram Moolenaar <Bram@vim.org>
Tue, 30 Aug 2016 21:26:57 +0000 (23:26 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 31 Mar 2018 20:58:53 +0000 (22:58 +0200)
Updated runtime files.  Remove version checks for Vim older than 6.0.
Cherry-picked from Vim v7.4.2296^.

plp.vim

diff --git a/plp.vim b/plp.vim
index 992062c0d49211e4c2cd84eade0ae5c276baa15c..adcddea257576550e67902f6776f5334b93c3c10 100644 (file)
--- a/plp.vim
+++ b/plp.vim
@@ -8,11 +8,8 @@
 " Add to filetype.vim the following line (without quote sign):
 " au BufNewFile,BufRead *.plp setf plp
 
-" 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
 
@@ -20,14 +17,9 @@ if !exists("main_syntax")
   let main_syntax = 'perlscript'
 endif
 
-if version < 600
-  so <sfile>:p:h/html.vim
-  syn include @PLPperl <sfile>:p:h/perl.vim
-else
-  runtime! syntax/html.vim
-  unlet b:current_syntax
-  syn include @PLPperl syntax/perl.vim
-endif
+runtime! syntax/html.vim
+unlet b:current_syntax
+syn include @PLPperl syntax/perl.vim
 
 syn cluster htmlPreproc add=PLPperlblock