1" Vim syntax file 2" Language: PLP (Perl in HTML) 3" Maintainer: Juerd <juerd@juerd.nl> 4" Last Change: 2003 Apr 25 5" Cloned From: aspperl.vim 6 7" Add to filetype.vim the following line (without quote sign): 8" au BufNewFile,BufRead *.plp setf plp 9 10" For version 5.x: Clear all syntax items 11" For version 6.x: Quit when a syntax file was already loaded 12if version < 600 13 syntax clear 14elseif exists("b:current_syntax") 15 finish 16endif 17 18if !exists("main_syntax") 19 let main_syntax = 'perlscript' 20endif 21 22if version < 600 23 so <sfile>:p:h/html.vim 24 syn include @PLPperl <sfile>:p:h/perl.vim 25else 26 runtime! syntax/html.vim 27 unlet b:current_syntax 28 syn include @PLPperl syntax/perl.vim 29endif 30 31syn cluster htmlPreproc add=PLPperlblock 32 33syn keyword perlControl PLP_END 34syn keyword perlStatementInclude include Include 35syn keyword perlStatementFiles ReadFile WriteFile Counter 36syn keyword perlStatementScalar Entity AutoURL DecodeURI EncodeURI 37 38syn cluster PLPperlcode contains=perlStatement.*,perlFunction,perlOperator,perlVarPlain,perlVarNotInMatches,perlShellCommand,perlFloat,perlNumber,perlStringUnexpanded,perlString,perlQQ,perlControl,perlConditional,perlRepeat,perlComment,perlPOD,perlHereDoc,perlPackageDecl,perlElseIfError,perlFiledescRead,perlMatch 39 40syn region PLPperlblock keepend matchgroup=Delimiter start=+<:=\=+ end=+:>+ transparent contains=@PLPperlcode 41 42syn region PLPinclude keepend matchgroup=Delimiter start=+<(+ end=+)>+ 43 44let b:current_syntax = "plp" 45 46