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

Sun, 31 Dec 2017 14:42:54 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 31 Dec 2017 14:42:54 -0500
changeset 666
0cf4a2458e49
parent 658
69ed96c80ed0
child 744
7a5823050d74
permissions
-rw-r--r--

add conflict marker highlight

362
7c5b0e94b399 Tweak perl settings, move all into after-syntax file
Meredith Howard <mhoward@roomag.org>
parents: 345
diff changeset
1 compiler perl
7c5b0e94b399 Tweak perl settings, move all into after-syntax file
Meredith Howard <mhoward@roomag.org>
parents: 345
diff changeset
2
7c5b0e94b399 Tweak perl settings, move all into after-syntax file
Meredith Howard <mhoward@roomag.org>
parents: 345
diff changeset
3 setlocal iskeyword+=:
7c5b0e94b399 Tweak perl settings, move all into after-syntax file
Meredith Howard <mhoward@roomag.org>
parents: 345
diff changeset
4
651
4a0d4c07b49e use perltidy for equalprg if present
Meredith Howard <mhoward@roomag.org>
parents: 643
diff changeset
5 if g:perl_tidy_equalprg
4a0d4c07b49e use perltidy for equalprg if present
Meredith Howard <mhoward@roomag.org>
parents: 643
diff changeset
6 setlocal equalprg=perltidy\ -q
4a0d4c07b49e use perltidy for equalprg if present
Meredith Howard <mhoward@roomag.org>
parents: 643
diff changeset
7 endif
4a0d4c07b49e use perltidy for equalprg if present
Meredith Howard <mhoward@roomag.org>
parents: 643
diff changeset
8
362
7c5b0e94b399 Tweak perl settings, move all into after-syntax file
Meredith Howard <mhoward@roomag.org>
parents: 345
diff changeset
9 " this keeps indents from jumping more than one level
7c5b0e94b399 Tweak perl settings, move all into after-syntax file
Meredith Howard <mhoward@roomag.org>
parents: 345
diff changeset
10 let b:indent_use_syntax = 0
7c5b0e94b399 Tweak perl settings, move all into after-syntax file
Meredith Howard <mhoward@roomag.org>
parents: 345
diff changeset
11
371
034b31ed5212 syntax fixup
Meredith Howard <mhoward@roomag.org>
parents: 362
diff changeset
12 " Add match for =method and =func from Pod::Weaver
226
a155935cbe07 Add match for =method from Pod::Weaver, move to own file
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
13 syn match podCommand "^=method" contained nextgroup=podCmdText contains=@NoSpell
371
034b31ed5212 syntax fixup
Meredith Howard <mhoward@roomag.org>
parents: 362
diff changeset
14 syn match podCommand "^=func" contained nextgroup=podCmdText contains=@NoSpell
034b31ed5212 syntax fixup
Meredith Howard <mhoward@roomag.org>
parents: 362
diff changeset
15
656
a74ea5b0fc73 Fix error marker due to loose function-parameters match
Meredith Howard <mhoward@roomag.org>
parents: 651
diff changeset
16 " Add matches for contrib/function-parameters.vim, but don't apply to fat-arrow cases
a74ea5b0fc73 Fix error marker due to loose function-parameters match
Meredith Howard <mhoward@roomag.org>
parents: 651
diff changeset
17 syn match perlFunction +\<method\>\(\_s*=>\)\@!\_s*+ nextgroup=perlSubName
a74ea5b0fc73 Fix error marker due to loose function-parameters match
Meredith Howard <mhoward@roomag.org>
parents: 651
diff changeset
18 syn match perlFunction +\<fun\>\(\_s*=>\)\@!\_s*+ nextgroup=perlSubName
a74ea5b0fc73 Fix error marker due to loose function-parameters match
Meredith Howard <mhoward@roomag.org>
parents: 651
diff changeset
19
643
e23cf51aca43 raise syn minlines
Meredith Howard <mhoward@roomag.org>
parents: 371
diff changeset
20 syn sync minlines=50
226
a155935cbe07 Add match for =method from Pod::Weaver, move to own file
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
21
656
a74ea5b0fc73 Fix error marker due to loose function-parameters match
Meredith Howard <mhoward@roomag.org>
parents: 651
diff changeset
22 " Tweak some colors, making POD stand out less
362
7c5b0e94b399 Tweak perl settings, move all into after-syntax file
Meredith Howard <mhoward@roomag.org>
parents: 345
diff changeset
23 hi! def link perlPOD Comment
7c5b0e94b399 Tweak perl settings, move all into after-syntax file
Meredith Howard <mhoward@roomag.org>
parents: 345
diff changeset
24 hi! def link podCommand SpecialComment
7c5b0e94b399 Tweak perl settings, move all into after-syntax file
Meredith Howard <mhoward@roomag.org>
parents: 345
diff changeset
25 hi! def link podCmdText Question
7c5b0e94b399 Tweak perl settings, move all into after-syntax file
Meredith Howard <mhoward@roomag.org>
parents: 345
diff changeset
26 hi! def link podFormat StorageClass

mercurial