Add match for =method from Pod::Weaver, move to own file

Mon, 09 Nov 2015 02:24:55 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 09 Nov 2015 02:24:55 -0500
changeset 226
a155935cbe07
parent 225
5b91792c70ba
child 227
230c3fc67325

Add match for =method from Pod::Weaver, move to own file

.vim/after/syntax/perl/custom.vim file | annotate | diff | comparison | revisions
.vim/after/syntax/perl/perl-contrib.vim file | annotate | diff | comparison | revisions
new file mode 100644
--- /dev/null
+++ b/.vim/after/syntax/perl/custom.vim
@@ -0,0 +1,6 @@
+" Add match for 'fun' from Function::Parameters
+syn match perlFunction +\<fun\>\_s*+ nextgroup=perlSubName
+
+" Add match for =method from Pod::Weaver
+syn match podCommand "^=method" contained nextgroup=podCmdText contains=@NoSpell
+
--- a/.vim/after/syntax/perl/perl-contrib.vim
+++ b/.vim/after/syntax/perl/perl-contrib.vim
@@ -7,5 +7,3 @@ runtime contrib/method-signatures.vim
 runtime contrib/test-more.vim
 runtime contrib/try-tiny.vim
 
-" Add match for 'fun' from Function::Parameters
-syn match perlFunction +\<fun\>\_s*+ nextgroup=perlSubName

mercurial