vim: prevent error highlighting of valid if constructs
authorMischa POSLAWSKY <perl@shiar.org>
Fri, 17 Jun 2011 19:49:31 +0000 (21:49 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 14 Sep 2015 21:40:44 +0000 (23:40 +0200)
Vim v7.2 started marking any leading if statements as syntax errors due to
matching perlElseIfError in this position.  This should not be explicitly
allowed here, and will still follow correctly after perlConditional.

plp.vim

diff --git a/plp.vim b/plp.vim
index 034cc1491000fcc715528220f6919cc2273ca586..992062c0d49211e4c2cd84eade0ae5c276baa15c 100644 (file)
--- a/plp.vim
+++ b/plp.vim
@@ -1,7 +1,7 @@
 " Vim syntax file
 " Language:    PLP (Perl in HTML)
 " Maintainer:  Shiar <perl@shiar.org>
-" Last Change: 2009 October 19
+" Last Change: 2011 June 17
 " Cloned From: aspperl.vim
 " Author:      Juerd <juerd@juerd.nl>
 
@@ -36,7 +36,7 @@ syn keyword perlStatementInclude include Include
 syn keyword perlStatementFiles ReadFile WriteFile Counter
 syn keyword perlStatementScalar EscapeHTML Entity AutoURL DecodeURI EncodeURI
 
-syn cluster PLPperlcode contains=perlStatement.*,perlFunction,perlOperator,perlVarPlain,perlVarNotInMatches,perlShellCommand,perlFloat,perlNumber,perlStringUnexpanded,perlString,perlQQ,perlControl,perlConditional,perlRepeat,perlComment,perlPOD,perlHereDoc,perlPackageDecl,perlElseIfError,perlFiledescRead,perlMatch
+syn cluster PLPperlcode contains=perlStatement.*,perlFunction,perlOperator,perlVarPlain,perlVarNotInMatches,perlShellCommand,perlFloat,perlNumber,perlStringUnexpanded,perlString,perlQQ,perlControl,perlConditional,perlRepeat,perlComment,perlPOD,perlHereDoc,perlPackageDecl,perlFiledescRead,perlMatch
   
 syn region  PLPperlblock keepend matchgroup=Delimiter start=+<:=\=+ end=+:>+ contains=@PLPperlcode