On Tue, 11 Jul 2006, Vigil wrote: > This is perfect - thank you!
> One issue, though (although I suspect this is more to do with vim): it did > not recognise a (locally defined) sub whose filename contained an > underscore. You mean the sub name contained an underscore? Perl::Tags finds subs here: sub sub_line { my ($self, $line, $statement, $file) = @_; if ($statement=~/sub\s+(\w+)\b/) { Like vim, perl's \w matches underscores. Or you mean the sub is in a file with an underscore in its name? osfameron's vimrc functions will only pull in tags in files accessible from the current file, I think. That's the beauty of the module. It creates tags dynamically. You don't want your tags file being polluted with every sub name in every file on your system. You can use the Synopsis script from the man page if you want to create tags for some specified set of files. > On Mon, 10 Jul 2006, Hakim Cassimally wrote: > >>On 28/05/06, Vigil <[EMAIL PROTECTED]> wrote: > >>> I would just like ctags to work with perl :-/ > >ctags already works with Perl (up to a point) though the bundled > >pltags.pl script is slightly better. You might also want to try my > >recently released perl module Perl::Tags, which is a slightly > >modernised version of that script. It has the advantage of being > >embeddable within Vim, so you can incrementally add to a tags file as > >you edit. With some changes in ftplugin/perl.vim you can open a > >script (without having run ctags first) and jump to the definition of > >a function in one of the modules use`d by that script (or recursively > >up to a set limit). > >http://search.cpan.org/~osfameron/Perl-Tags/lib/Perl/Tags.pm > >Regards, > >Hakim > -- > . -- Dr Bean If I did not see further, it was because those on whose shoulders I would stand would stand on my shoulders. --Dr Bean