mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
added << >> <> support to IF statements
This commit is contained in:
1
NEWS
1
NEWS
@@ -1,3 +1,4 @@
|
|||||||
|
- added << >> <> support to if statments (SMK, Monte)
|
||||||
- fix _assign_smarty_interface to not overwrite keys
|
- fix _assign_smarty_interface to not overwrite keys
|
||||||
other than 'request' (Jerome Poudevigne, Monte)
|
other than 'request' (Jerome Poudevigne, Monte)
|
||||||
- added html_radios to distribution (Christopher Kvarme, Monte)
|
- added html_radios to distribution (Christopher Kvarme, Monte)
|
||||||
|
@@ -1089,7 +1089,7 @@ class Smarty_Compiler extends Smarty {
|
|||||||
preg_match_all('/(?>
|
preg_match_all('/(?>
|
||||||
' . $this->_obj_call_regexp . '(?:' . $this->_mod_regexp . '*)? | # valid object call
|
' . $this->_obj_call_regexp . '(?:' . $this->_mod_regexp . '*)? | # valid object call
|
||||||
' . $this->_var_regexp . '(?:' . $this->_mod_regexp . '*)? | # var or quoted string
|
' . $this->_var_regexp . '(?:' . $this->_mod_regexp . '*)? | # var or quoted string
|
||||||
\-?\d+(?:\.\d+)?|\.\d+|!==|<=>|===|==|!=|<=|>=|\&\&|\|\||\(|\)|,|\!|\^|=|\&|\~|<|>|\||\%|\+|\-|\/|\*|\@ | # valid non-word token
|
\-?\d+(?:\.\d+)?|\.\d+|!==|===|==|!=|<>|<<|>>|<=|>=|\&\&|\|\||\(|\)|,|\!|\^|=|\&|\~|<|>|\||\%|\+|\-|\/|\*|\@ | # valid non-word token
|
||||||
\b\w+\b | # valid word token
|
\b\w+\b | # valid word token
|
||||||
\S+ # anything else
|
\S+ # anything else
|
||||||
)/x', $tag_args, $match);
|
)/x', $tag_args, $match);
|
||||||
@@ -1117,6 +1117,9 @@ class Smarty_Compiler extends Smarty {
|
|||||||
case '>':
|
case '>':
|
||||||
case '<':
|
case '<':
|
||||||
case '!=':
|
case '!=':
|
||||||
|
case '<>':
|
||||||
|
case '<<':
|
||||||
|
case '>>':
|
||||||
case '<=':
|
case '<=':
|
||||||
case '>=':
|
case '>=':
|
||||||
case '&&':
|
case '&&':
|
||||||
|
Reference in New Issue
Block a user