Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parsing should fail if {% else foo = 'blah' %} #713

Closed
amit777 opened this issue Jul 4, 2024 · 1 comment
Closed

parsing should fail if {% else foo = 'blah' %} #713

amit777 opened this issue Jul 4, 2024 · 1 comment
Labels

Comments

@amit777
Copy link
Contributor

amit777 commented Jul 4, 2024

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
Copy link
Contributor Author

amit777 commented Jul 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants