Skip to content


Elseif syntax error #26

ajfranzoia opened this Issue · 0 comments

2 participants


When using the elseif tagit will be marked as a syntax error, with the message "unclosed elseif" and the message "unexpected endif, expected endelseif" in the next endif tag.

Example that will raise the error (taken from official Twig documentation)

{% if kenny.sick %}
    Kenny is sick.
{% elseif kenny.dead %}
    You killed Kenny!  You bastard!!!
{% else %}
    Kenny looks okay --- so far
{% endif %}

I'm using the last development version.

@sebhoerl sebhoerl pushed a commit that closed this issue
Sebastian Hörl Fixes elseif errors. Closes #26. 75eb9d8
@sebhoerl sebhoerl closed this in 75eb9d8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.