$this->functions[$node->getAttribute('name')] = $node;
}
+ // the .. operator is equivalent to the range() function
+ if ($node instanceof Twig_Node_Expression_Binary_Range && !isset($this->functions['range'])) {
+ $this->functions['range'] = $node;
+ }
+
// wrap print to check __toString() calls
if ($node instanceof Twig_Node_Print) {
return new Twig_Node_SandboxedPrint($node->getNode('expr'), $node->getTemplateLine(), $node->getNodeTag());