X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-REPL.git;a=blobdiff_plain;f=lib%2FDevel%2FREPL%2FPlugin%2FCompletionDriver%2FKeywords.pm;h=bba685c57a3faf5362b33b693035c763bfe44d1c;hp=f9171634155a6d2ae9e68c9b75b8d0b67be9cc68;hb=c45376f3de16a5a467a1a26e63a279f30eb8672d;hpb=cfd1094b45c394258ccda08216f1435bf40e1d50 diff --git a/lib/Devel/REPL/Plugin/CompletionDriver/Keywords.pm b/lib/Devel/REPL/Plugin/CompletionDriver/Keywords.pm index f917163..bba685c 100644 --- a/lib/Devel/REPL/Plugin/CompletionDriver/Keywords.pm +++ b/lib/Devel/REPL/Plugin/CompletionDriver/Keywords.pm @@ -1,7 +1,19 @@ +use strict; +use warnings; package Devel::REPL::Plugin::CompletionDriver::Keywords; +# ABSTRACT: Complete Perl keywords and operators + +our $VERSION = '1.003029'; + use Devel::REPL::Plugin; +use Devel::REPL::Plugin::Completion; # die early if cannot load use B::Keywords qw/@Functions @Barewords/; -use namespace::clean -except => [ 'meta' ]; +use namespace::autoclean; + +sub BEFORE_PLUGIN { + my $self = shift; + $self->load_plugin('Completion'); +} around complete => sub { my $orig = shift; @@ -28,9 +40,10 @@ around complete => sub { __END__ -=head1 NAME +=pod -Devel::REPL::Plugin::CompletionDriver::Keywords - Complete Perl keywords and operators +=head1 AUTHOR -=cut +Shawn M Moore, C<< >> +=cut