[Templates-cvs] cvs commit: TT3/lib/Template/Directive My.pm

cvs@template-toolkit.org cvs@template-toolkit.org
Fri, 03 Dec 2004 14:23:31 +0000


cvs         04/12/03 14:23:31

  Modified:    lib/Template/Directive My.pm
  Log:
  * minor fixes
  
  Revision  Changes    Path
  1.3       +4 -4      TT3/lib/Template/Directive/My.pm
  
  Index: My.pm
  ===================================================================
  RCS file: /template-toolkit/TT3/lib/Template/Directive/My.pm,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- My.pm	2004/12/01 18:01:22	1.2
  +++ My.pm	2004/12/03 14:23:31	1.3
  @@ -15,7 +15,7 @@
   #   modify it under the same terms as Perl itself.
   #
   # REVISION
  -#   $Id: My.pm,v 1.2 2004/12/01 18:01:22 abw Exp $
  +#   $Id: My.pm,v 1.3 2004/12/03 14:23:31 abw Exp $
   #
   #========================================================================
   
  @@ -26,7 +26,7 @@
   use Template::Directive;
   use base qw( Template::Directive );
   
  -our $VERSION = sprintf("%d.%02d", q$Revision: 1.2 $ =~ /(\d+)\.(\d+)/);
  +our $VERSION = sprintf("%d.%02d", q$Revision: 1.3 $ =~ /(\d+)\.(\d+)/);
   our $DEBUG   = 0 unless defined $DEBUG;
   our $ERROR   = '';
   our $KEYWORD = 'MY';
  @@ -39,7 +39,7 @@
       my $parser = $match->{ parser }
           || return $self->error('no parser defined');
   
  -    while ($tuple = $parser->parse_ident_assign_expr($textref)) {
  +    while ($tuple = $parser->parse_ident_assign_expr($textref, required => 1)) {
           push(@vars, $tuple);
       }
   
  @@ -83,7 +83,7 @@
   
   =head1 VERSION
   
  -$Revision: 1.2 $
  +$Revision: 1.3 $
   
   =head1 COPYRIGHT