Mercurial > vim
comparison runtime/ftplugin/perl.vim @ 12499:d91cf2e26ef0
Update runtime files.
commit https://github.com/vim/vim/commit/37c64c78fd87e086b5a945ad7032787c274e2dcb
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 19 22:06:03 2017 +0200
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 19 Sep 2017 22:15:06 +0200 |
parents | 42bf9264e64e |
children | bd021eb62e73 |
comparison
equal
deleted
inserted
replaced
12498:bf98d339b568 | 12499:d91cf2e26ef0 |
---|---|
1 " Vim filetype plugin file | 1 " Vim filetype plugin file |
2 " Language: Perl | 2 " Language: Perl |
3 " Maintainer: vim-perl <vim-perl@googlegroups.com> | 3 " Maintainer: vim-perl <vim-perl@googlegroups.com> |
4 " Homepage: http://github.com/vim-perl/vim-perl | 4 " Homepage: http://github.com/vim-perl/vim-perl |
5 " Bugs/requests: http://github.com/vim-perl/vim-perl/issues | 5 " Bugs/requests: http://github.com/vim-perl/vim-perl/issues |
6 " Last Change: 2013-07-21 | 6 " Last Change: 2015-02-09 |
7 | 7 |
8 if exists("b:did_ftplugin") | finish | endif | 8 if exists("b:did_ftplugin") | finish | endif |
9 let b:did_ftplugin = 1 | 9 let b:did_ftplugin = 1 |
10 | 10 |
11 " Make sure the continuation lines below do not cause problems in | 11 " Make sure the continuation lines below do not cause problems in |
31 " Provided by Ned Konz <ned at bike-nomad dot com> | 31 " Provided by Ned Konz <ned at bike-nomad dot com> |
32 "--------------------------------------------- | 32 "--------------------------------------------- |
33 setlocal include=\\<\\(use\\\|require\\)\\> | 33 setlocal include=\\<\\(use\\\|require\\)\\> |
34 setlocal includeexpr=substitute(substitute(substitute(v:fname,'::','/','g'),'->\*','',''),'$','.pm','') | 34 setlocal includeexpr=substitute(substitute(substitute(v:fname,'::','/','g'),'->\*','',''),'$','.pm','') |
35 setlocal define=[^A-Za-z_] | 35 setlocal define=[^A-Za-z_] |
36 setlocal iskeyword+=: | |
36 | 37 |
37 " The following line changes a global variable but is necessary to make | 38 " The following line changes a global variable but is necessary to make |
38 " gf and similar commands work. The change to iskeyword was incorrect. | 39 " gf and similar commands work. Thanks to Andrew Pimlott for pointing |
39 " Thanks to Andrew Pimlott for pointing out the problem. If this causes a | 40 " out the problem. If this causes a problem for you, add an |
40 " problem for you, add an after/ftplugin/perl.vim file that contains | 41 " after/ftplugin/perl.vim file that contains |
41 " set isfname-=: | 42 " set isfname-=: |
42 set isfname+=: | 43 set isfname+=: |
43 set iskeyword+=: | |
44 | 44 |
45 " Set this once, globally. | 45 " Set this once, globally. |
46 if !exists("perlpath") | 46 if !exists("perlpath") |
47 if executable("perl") | 47 if executable("perl") |
48 try | 48 try |
75 let &l:path=&l:path.",".perlpath | 75 let &l:path=&l:path.",".perlpath |
76 endif | 76 endif |
77 "--------------------------------------------- | 77 "--------------------------------------------- |
78 | 78 |
79 " Undo the stuff we changed. | 79 " Undo the stuff we changed. |
80 let b:undo_ftplugin = "setlocal fo< com< cms< inc< inex< def< isf< kp< path<" . | 80 let b:undo_ftplugin = "setlocal fo< com< cms< inc< inex< def< isk< isf< kp< path<" . |
81 \ " | unlet! b:browsefilter" | 81 \ " | unlet! b:browsefilter" |
82 | 82 |
83 " proper matching for matchit plugin | 83 " proper matching for matchit plugin |
84 let b:match_skip = 's:comment\|string\|perlQQ\|perlShellCommand\|perlHereDoc\|perlSubstitution\|perlTranslation\|perlMatch\|perlFormatField' | 84 let b:match_skip = 's:comment\|string\|perlQQ\|perlShellCommand\|perlHereDoc\|perlSubstitution\|perlTranslation\|perlMatch\|perlFormatField' |
85 let b:match_words = '\<if\>:\<elsif\>:\<else\>' | |
85 | 86 |
86 " Restore the saved compatibility options. | 87 " Restore the saved compatibility options. |
87 let &cpo = s:save_cpo | 88 let &cpo = s:save_cpo |
88 unlet s:save_cpo | 89 unlet s:save_cpo |