fabpot/Twig — pull request #894 by char101 (2012-11-08 08:20:20+00:00)
Title: Fix twig error lineno off by 2

It seems to me that the lineno reported by Twig_Error is off by 2 from the real lineno in the generated PHP source

For example:

```
{% if true %}
Yes
{% endif %}
```

```php
parent = false;

$this->blocks = array(
);
}

protected function doDisplay(array $context, array $blocks = array())
{
// line 1
if (true) { // <- this is line 19
// line 2
echo "Yes <- this is line 21
";
}
}

public function getTemplateName()
{
return null;
}

public function isTraitable()
{
return false;
}

public function getDebugInfo()
{
return array ( 19 => 2, 17 => 1,); // <- should be return array ( 21 => 2, 19 => 1,);
}
}
```