plp.vim 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. " Add to filetype.vim the following line (without quote sign):
  7. " au BufNewFile,BufRead *.plp setf plp
  8. " quit when a syntax file was already loaded
  9. if exists("b:current_syntax")
  10. finish
  11. endif
  12. if !exists("main_syntax")
  13. let main_syntax = 'perlscript'
  14. endif
  15. runtime! syntax/html.vim
  16. unlet b:current_syntax
  17. syn include @PLPperl syntax/perl.vim
  18. syn cluster htmlPreproc add=PLPperlblock
  19. syn keyword perlControl PLP_END
  20. syn keyword perlStatementInclude include Include
  21. syn keyword perlStatementFiles ReadFile WriteFile Counter
  22. syn keyword perlStatementScalar Entity AutoURL DecodeURI EncodeURI
  23. 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
  24. syn region PLPperlblock keepend matchgroup=Delimiter start=+<:=\=+ end=+:>+ transparent contains=@PLPperlcode
  25. syn region PLPinclude keepend matchgroup=Delimiter start=+<(+ end=+)>+
  26. let b:current_syntax = "plp"