File: phpbb/template/twig/tokenparser/defineparser.php
Unmodified
Added
Modified
Removed
Line 13 | Line 13 |
---|
*/
namespace phpbb\template\twig\tokenparser;
|
*/
namespace phpbb\template\twig\tokenparser;
|
| |
class defineparser extends \Twig_TokenParser {
| class defineparser extends \Twig_TokenParser {
|
Line 33 | Line 32 |
---|
$name = $this->parser->getExpressionParser()->parseExpression();
$capture = false;
|
$name = $this->parser->getExpressionParser()->parseExpression();
$capture = false;
|
if ($stream->test(\Twig_Token::OPERATOR_TYPE, '=')) {
| if ($stream->test(\Twig_Token::OPERATOR_TYPE, '=')) {
|
$stream->next(); $value = $this->parser->getExpressionParser()->parseExpression();
| $stream->next(); $value = $this->parser->getExpressionParser()->parseExpression();
|
Line 45 | Line 45 |
---|
}
$stream->expect(\Twig_Token::BLOCK_END_TYPE);
|
}
$stream->expect(\Twig_Token::BLOCK_END_TYPE);
|
} else {
| } else {
|
$capture = true;
$stream->expect(\Twig_Token::BLOCK_END_TYPE);
| $capture = true;
$stream->expect(\Twig_Token::BLOCK_END_TYPE);
|