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

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


cvs         04/12/03 14:17:37

  Modified:    lib/Template/Tag Directive.pm
  Log:
  * changes to SET sexpr
  
  Revision  Changes    Path
  1.13      +5 -5      TT3/lib/Template/Tag/Directive.pm
  
  Index: Directive.pm
  ===================================================================
  RCS file: /template-toolkit/TT3/lib/Template/Tag/Directive.pm,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- Directive.pm	2004/12/03 13:38:37	1.12
  +++ Directive.pm	2004/12/03 14:17:37	1.13
  @@ -16,7 +16,7 @@
   #   modify it under the same terms as Perl itself.
   #
   # REVISION
  -#   $Id: Directive.pm,v 1.12 2004/12/03 13:38:37 abw Exp $
  +#   $Id: Directive.pm,v 1.13 2004/12/03 14:17:37 abw Exp $
   #
   # TODO
   #   * if we change the directives then we need to notify parser
  @@ -35,7 +35,7 @@
   use Template::Tag;
   use base qw( Template::Tag );
   
  -our $VERSION = sprintf("%d.%02d", q$Revision: 1.12 $ =~ /(\d+)\.(\d+)/);
  +our $VERSION = sprintf("%d.%02d", q$Revision: 1.13 $ =~ /(\d+)\.(\d+)/);
   our $DEBUG   = 0 unless defined $DEBUG;
   our $ERROR   = '';
   
  @@ -489,9 +489,9 @@
   
       # see if it looks like an assignment
       if ($self->{ implicit_set } 
  -        && ($expr = $parser->parse_assign($textref))) {
  +        && ($expr = $parser->parse_var_assign_expr($textref))) {
           $self->debug("implicit SET\n") if $DEBUG;
  -        return $handler->expr([ set => $expr ]);
  +        return $handler->expr([ set => [ $expr ] ]);
       }
       elsif ($self->{ implicit_get }
              && ($expr = $parser->parse_expression($textref))) {
  @@ -616,7 +616,7 @@
   
   =head1 VERSION
   
  -$Revision: 1.12 $
  +$Revision: 1.13 $
   
   =head1 COPYRIGHT