cvs: smarty / NEWS /libs Smarty_Compiler.class.php

From: Date: Fri, 02 May 2003 16:39:19 +0000
Subject: cvs: smarty / NEWS /libs Smarty_Compiler.class.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-576@lists.php.net to get a copy of this message
mohrt Fri May 2 12:39:19 2003 EDT Modified files: /smarty NEWS /smarty/libs Smarty_Compiler.class.php Log: added simple math operators to variables Index: smarty/NEWS diff -u smarty/NEWS:1.355 smarty/NEWS:1.356 --- smarty/NEWS:1.355 Tue Apr 29 13:00:30 2003 +++ smarty/NEWS Fri May 2 12:39:18 2003 @@ -1,3 +1,4 @@ + - added simple math operators to variables (Monte) - reverted patch for case-insensitive tag-names (messju) - enabled array(&$obj. 'source', 'timestamp', 'secure', 'trusted') as callback for register_resource() (messju); Index: smarty/libs/Smarty_Compiler.class.php diff -u smarty/libs/Smarty_Compiler.class.php:1.219 smarty/libs/Smarty_Compiler.class.php:1.220 --- smarty/libs/Smarty_Compiler.class.php:1.219 Tue Apr 29 13:00:30 2003 +++ smarty/libs/Smarty_Compiler.class.php Fri May 2 12:39:18 2003 @@ -39,7 +39,7 @@ * @package Smarty */ -/* $Id: Smarty_Compiler.class.php,v 1.219 2003/04/29 17:00:30 messju Exp $ */ +/* $Id: Smarty_Compiler.class.php,v 1.220 2003/05/02 16:39:18 mohrt Exp $ */ /** * Template compiling class * @package Smarty @@ -112,7 +112,7 @@ // $foo[5][blah] // $foo[5].bar[$foobar][4] $this->_dvar_guts_regexp = '\w+(?:' . $this->_var_bracket_regexp - . ')*(?:\.\$?\w+(?:' . $this->_var_bracket_regexp . ')*)*'; + . ')*(?:\.\$?\w+(?:' . $this->_var_bracket_regexp . ')*)*(?:\+\+|\-\-|(?:[\+\-\*\/]\d+(?:\.\d+)?))?'; $this->_dvar_regexp = '\$' . $this->_dvar_guts_regexp; // matches config vars:

« previous php.smarty.cvs (#576) next »