The following is a proposed patch to runtime/syntax/perl.vim. It adds
support for Test::More's (core module) functions/blocks used in many
Perl test files.

Index: runtime/syntax/perl.vim
===================================================================
--- runtime/syntax/perl.vim     (revision 1104)
+++ runtime/syntax/perl.vim     (working copy)
@@ -90,9 +90,9 @@
 syn keyword perlOperator               defined undef and or not bless ref
 if exists("perl_fold")
   " if BEGIN/END would be a keyword the perlBEGINENDFold does not
work
-  syn match perlControl                        "\<BEGIN\|CHECK\|INIT\|END\>" 
contained
+  syn match perlControl                        
"\<BEGIN\|CHECK\|INIT\|END\|SKIP\|TODO\>"
contained
 else
-  syn keyword perlControl              BEGIN END CHECK INIT
+  syn keyword perlControl              BEGIN END CHECK INIT SKIP TODO
 endif

 syn keyword perlStatementStorage       my local our
@@ -121,6 +121,7 @@

 syn keyword perlStatementMisc          warn formline reset scalar delete
prototype lock
 syn keyword perlStatementNew           new
+syn keyword PerlStatementTest          ok is isnt like unlike is_deeply
cmp_ok can_ok isa_ok pass fail use_ok require_ok is_deeply diag skip
todo todo_skip plan BAIL_OUT

 syn keyword perlTodo                   TODO TBD FIXME XXX contained

@@ -511,6 +512,7 @@
   HiLink perlStatementTime     perlStatement
   HiLink perlStatementMisc     perlStatement
   HiLink perlStatementNew      perlStatement
+  HiLink perlStatementTest     perlStatement
   HiLink perlFunctionName      perlIdentifier
   HiLink perlMethod            perlIdentifier
   HiLink perlFunctionPRef      perlType
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui