summaryrefslogtreecommitdiff
path: root/lexer
diff options
context:
space:
mode:
authorUwe Tews <uwe.tews@googlemail.com>2015-06-14 04:26:37 +0200
committerUwe Tews <uwe.tews@googlemail.com>2015-06-14 04:26:37 +0200
commit3bb22560c00ab6a0648c0f6308c3dfa900994c19 (patch)
tree4849c64d1a53de53862f438cfb94c54e165d273c /lexer
parent83f3f6d7f151b30a74e59eae8349aa1b2c8670ac (diff)
downloadsmarty-3bb22560c00ab6a0648c0f6308c3dfa900994c19.tar.gz
smarty-3bb22560c00ab6a0648c0f6308c3dfa900994c19.tar.bz2
smarty-3bb22560c00ab6a0648c0f6308c3dfa900994c19.zip
- bugfix an output tag with variable, modifier followed by an operator like {$foo|modifier+1} did fail https://github.com/smarty-php/smarty/issues/53
Diffstat (limited to 'lexer')
-rw-r--r--lexer/smarty_internal_templateparser.y12
1 files changed, 2 insertions, 10 deletions
diff --git a/lexer/smarty_internal_templateparser.y b/lexer/smarty_internal_templateparser.y
index 341c99f8..fef849e4 100644
--- a/lexer/smarty_internal_templateparser.y
+++ b/lexer/smarty_internal_templateparser.y
@@ -334,26 +334,18 @@ tag(res) ::= LDEL variable(e). {
res = $this->compiler->compileTag('private_print_expression',array(),array('value'=>e));
}
-tag(res) ::= LDEL variable(e) modifierlist(l) attributes(a). {
- res = $this->compiler->compileTag('private_print_expression',a,array('value'=>e, 'modifierlist'=>l));
-}
-
tag(res) ::= LDEL variable(e) attributes(a). {
res = $this->compiler->compileTag('private_print_expression',a,array('value'=>e));
}
tag(res) ::= LDEL value(e). {
res = $this->compiler->compileTag('private_print_expression',array(),array('value'=>e));
}
-tag(res) ::= LDEL value(e) modifierlist(l) attributes(a). {
- res = $this->compiler->compileTag('private_print_expression',a,array('value'=>e, 'modifierlist'=>l));
-}
-
tag(res) ::= LDEL value(e) attributes(a). {
res = $this->compiler->compileTag('private_print_expression',a,array('value'=>e));
}
-tag(res) ::= LDEL expr(e) modifierlist(l) attributes(a). {
- res = $this->compiler->compileTag('private_print_expression',a,array('value'=>e,'modifierlist'=>l));
+tag(res) ::= LDEL expr(e). {
+ res = $this->compiler->compileTag('private_print_expression',array(),array('value'=>e));
}
tag(res) ::= LDEL expr(e) attributes(a). {