pulse00/Twig-Eclipse-Plugin — Issue #38: Some parsing mistakes
Author: Burgov
Created: 2011-12-03 13:22:14+00:00
State: open

Hi,

Consider the template at http://pastie.org/2954801. There's a couple of things going wrong here:

1) the outline isn't correct, because the parser cannot distinguish between single tags, and ranged tags, for example:

{% set test = 5 %} is parsed as an opening tag, even though it has no closing tag.
{% set test %}5{% set %} is parsed correctly

The same goes for blocks:
{% block pageTitle "test" %}
{% block pageTitle %}test{% endblock %}

2) I'm getting some obscure warning on line 27,	{{ (labour.financialStatus.id is sameas(30))|tick }}:
"mismatched input '(' expecting PRINT_CLOSE"

3) Lines 30 and 31 also gives a strange warning {% set projectHours = projectHours + labour.hours %}
"no viable alternative at character '+'"

Regards