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

changeset 744
7a5823050d74
parent 658
69ed96c80ed0
child 745
dd23da749523
equal deleted inserted replaced
743:76c4c96d8b9f 744:7a5823050d74
1 compiler perl
2
3 setlocal iskeyword+=:
4
5 if g:perl_tidy_equalprg
6 setlocal equalprg=perltidy\ -q
7 endif
8
9 " this keeps indents from jumping more than one level 1 " this keeps indents from jumping more than one level
10 let b:indent_use_syntax = 0 2 let b:indent_use_syntax = 0
3
4 syn sync minlines=100
11 5
12 " Add match for =method and =func from Pod::Weaver 6 " Add match for =method and =func from Pod::Weaver
13 syn match podCommand "^=method" contained nextgroup=podCmdText contains=@NoSpell 7 syn match podCommand "^=method" contained nextgroup=podCmdText contains=@NoSpell
14 syn match podCommand "^=func" contained nextgroup=podCmdText contains=@NoSpell 8 syn match podCommand "^=func" contained nextgroup=podCmdText contains=@NoSpell
15 9
16 " Add matches for contrib/function-parameters.vim, but don't apply to fat-arrow cases 10 " Add matches for contrib/function-parameters.vim, but don't apply to fat-arrow cases
17 syn match perlFunction +\<method\>\(\_s*=>\)\@!\_s*+ nextgroup=perlSubName 11 syn match perlFunction +\<method\>\(\_s*=>\)\@!\_s*+ nextgroup=perlSubName
18 syn match perlFunction +\<fun\>\(\_s*=>\)\@!\_s*+ nextgroup=perlSubName 12 syn match perlFunction +\<fun\>\(\_s*=>\)\@!\_s*+ nextgroup=perlSubName
19 13
20 syn sync minlines=50
21
22 " Tweak some colors, making POD stand out less 14 " Tweak some colors, making POD stand out less
23 hi! def link perlPOD Comment 15 hi! def link perlPOD Comment
24 hi! def link podCommand SpecialComment 16 hi! def link podCommand SpecialComment
25 hi! def link podCmdText Question 17 hi! def link podCmdText Question
26 hi! def link podFormat StorageClass 18 hi! def link podFormat StorageClass

mercurial