dispatch to parser for some common functions
Graham Knop [Mon, 17 Jun 2013 03:58:31 +0000 (23:58 -0400)]
lib/Filter/Keyword.pm

index b48ebb4..aa0d798 100644 (file)
@@ -53,7 +53,15 @@ sub remove {
   $self->clear_globref;
 }
 
-has keyword_parser => (is => 'rw', weak_ref => 1, clearer => 1);
+has keyword_parser => (
+  is => 'rw',
+  weak_ref => 1,
+  clearer => 1,
+  handles => [
+    'match_source',
+    'current_match',
+  ],
+);
 
 has target_package => (is => 'ro', required => 1);
 has keyword_name   => (is => 'ro', required => 1);