From: Mischa POSLAWSKY Date: Fri, 17 Jun 2011 19:49:31 +0000 (+0200) Subject: vim: prevent error highlighting of valid if constructs X-Git-Tag: 3.25~13 X-Git-Url: http://git.shiar.net/perl/plp/.git/commitdiff_plain/86f96854f1ab983cfcfdb001e1bcaa89407f724e vim: prevent error highlighting of valid if constructs 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. --- diff --git a/plp.vim b/plp.vim index 034cc14..992062c 100644 --- a/plp.vim +++ b/plp.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: PLP (Perl in HTML) " Maintainer: Shiar -" Last Change: 2009 October 19 +" Last Change: 2011 June 17 " Cloned From: aspperl.vim " Author: Juerd @@ -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