--- 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