2 " Language: PLP (Perl in HTML)
3 " Maintainer: Juerd <juerd@juerd.nl>
4 " Last Change: 2003 Apr 25
5 " Cloned From: aspperl.vim
7 " Add to filetype.vim the following line (without quote sign):
8 " au BufNewFile,BufRead *.plp setf plp
10 " For version 5.x: Clear all syntax items
11 " For version 6.x: Quit when a syntax file was already loaded
14 elseif exists("b:current_syntax")
18 if !exists("main_syntax")
19 let main_syntax = 'perlscript'
23 so <sfile>:p:h/html.vim
24 syn include @PLPperl <sfile>:p:h/perl.vim
26 runtime! syntax/html.vim
27 unlet b:current_syntax
28 syn include @PLPperl syntax/perl.vim
31 syn cluster htmlPreproc add=PLPperlblock
33 syn keyword perlControl PLP_END
34 syn keyword perlStatementInclude include Include
35 syn keyword perlStatementFiles ReadFile WriteFile Counter
36 syn keyword perlStatementScalar Entity AutoURL DecodeURI EncodeURI
38 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
40 syn region PLPperlblock keepend matchgroup=Delimiter start=+<:=\=+ end=+:>+ transparent contains=@PLPperlcode
42 syn region PLPinclude keepend matchgroup=Delimiter start=+<(+ end=+)>+
44 let b:current_syntax = "plp"