.vim/after/syntax/perl/custom.vim

changeset 656
a74ea5b0fc73
parent 651
4a0d4c07b49e
child 658
69ed96c80ed0
equal deleted inserted replaced
655:3401fe6aa66f 656:a74ea5b0fc73
14 14
15 " Add match for =method and =func from Pod::Weaver 15 " Add match for =method and =func from Pod::Weaver
16 syn match podCommand "^=method" contained nextgroup=podCmdText contains=@NoSpell 16 syn match podCommand "^=method" contained nextgroup=podCmdText contains=@NoSpell
17 syn match podCommand "^=func" contained nextgroup=podCmdText contains=@NoSpell 17 syn match podCommand "^=func" contained nextgroup=podCmdText contains=@NoSpell
18 18
19 " Add matches for contrib/function-parameters.vim, but don't apply to fat-arrow cases
20 syn match perlFunction +\<method\>\(\_s*=>\)\@!\_s*+ nextgroup=perlSubName
21 syn match perlFunction +\<fun\>\(\_s*=>\)\@!\_s*+ nextgroup=perlSubName
22
19 syn sync minlines=50 23 syn sync minlines=50
20 24
21 " Tweak some colors 25 " Tweak some colors, making POD stand out less
22 hi! def link perlPOD Comment 26 hi! def link perlPOD Comment
23 hi! def link podCommand SpecialComment 27 hi! def link podCommand SpecialComment
24 hi! def link podCmdText Question 28 hi! def link podCmdText Question
25 hi! def link podFormat StorageClass 29 hi! def link podFormat StorageClass

mercurial