Mon, 09 Nov 2015 02:24:55 -0500
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