--- /dev/null
+--TEST--
+nested "with" tags
+--TEMPLATE--
+{% set foo, bar = 'foo', 'bar' %}
+{% with {bar: 'BAZ'} %}
+ {% with {foo: 'FOO'} %}
+ {{ foo }}{{ bar }}
+ {% endwith %}
+{% endwith %}
+{{ foo }}{{ bar }}
+--DATA--
+return array()
+--EXPECT--
+FOOBAZ
+ foobar