Fix error marker due to loose function-parameters match

Tue, 28 Nov 2017 11:24:45 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Tue, 28 Nov 2017 11:24:45 -0500
changeset 656
a74ea5b0fc73
parent 655
3401fe6aa66f
child 657
628b4b962086

Fix error marker due to loose function-parameters match

.vim/after/syntax/perl/custom.vim file | annotate | diff | comparison | revisions
.vim/after/syntax/perl/perl-contrib.vim file | annotate | diff | comparison | revisions
--- a/.vim/after/syntax/perl/custom.vim
+++ b/.vim/after/syntax/perl/custom.vim
@@ -16,9 +16,13 @@ let b:indent_use_syntax = 0
 syn match podCommand "^=method" contained nextgroup=podCmdText contains=@NoSpell
 syn match podCommand "^=func" contained nextgroup=podCmdText contains=@NoSpell
 
+" Add matches for contrib/function-parameters.vim, but don't apply to fat-arrow cases
+syn match perlFunction +\<method\>\(\_s*=>\)\@!\_s*+ nextgroup=perlSubName
+syn match perlFunction +\<fun\>\(\_s*=>\)\@!\_s*+ nextgroup=perlSubName
+
 syn sync minlines=50
 
-" Tweak some colors
+" Tweak some colors, making POD stand out less
 hi! def link perlPOD      Comment
 hi! def link podCommand   SpecialComment
 hi! def link podCmdText   Question
--- a/.vim/after/syntax/perl/perl-contrib.vim
+++ b/.vim/after/syntax/perl/perl-contrib.vim
@@ -4,8 +4,7 @@
 runtime contrib/carp.vim
 runtime contrib/highlight-all-pragmas.vim
 runtime contrib/moose.vim
-runtime contrib/method-signatures.vim
-runtime contrib/function-parameters.vim
+" runtime contrib/function-parameters.vim
 runtime contrib/test-more.vim
 runtime contrib/try-tiny.vim
 runtime contrib/heredoc-sql.vim

mercurial