parsing should fail if {% else foo = 'blah' %}
amit777 opened this issue · 1 comments
amit777 commented
I don't believe this should be valid syntax:
{% if foo %} foo
{% else foo = 'blah' %}
{% endif %}
If there is stuff after the {% else ... %}
I believe there should be a parse error?
amit777 commented
thanks for the quick patch on this! And nice catches on potential ordering issues with elsif and else. I didn't think of that but it's definitely possible to happen.