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 |