git-svn-id: http://dev.catalyst.perl.org/repos/bast/trunk/Devel-REPL@4405
bd8105ee-0ff8-0310-8827-fb3f25b6796d
return $orig->(@_)
unless $last->isa('PPI::Token::Word');
+ # don't complete keywords on foo->method
+ return $orig->(@_)
+ if $last->sprevious_sibling
+ && $last->sprevious_sibling->isa('PPI::Token::Operator')
+ && $last->sprevious_sibling->content eq '->';
+
my $re = qr/^\Q$last/;
return $orig->(@_),