1
0
Fork 0
mirror of https://github.com/Luzifer/promcertcheck.git synced 2024-11-14 02:32:43 +00:00
promcertcheck/vendor/github.com/flosch/pongo2/template_tests/comment.tpl
Knut Ahlers 2f67c05f2e
Force latest version of pongo2
v3 has a bug with sorted keyword

Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-11-05 16:50:25 +01:00

50 lines
1.1 KiB
Smarty

empty single line comment
{# #}
filled single line comment
{# testing single line comment #}
filled single line comment with valid tags
{# testing single line comment {% if thing %}{% endif %} #}
filled single line comment with invalid tags
{# testing single line comment {% if thing %} #}
filled single line comment with invalid syntax
{# testing single line comment {% if thing('') %}wow{% endif %} #}
empty block comment
{% comment %}{% endcomment %}
filled text single line block comment
{% comment %}filled block comment {% endcomment %}
empty multi line block comment
{% comment %}
{% endcomment %}
block comment with other tags inside of it
{% comment %}
{{ thing_goes_here }}
{% if stuff %}do stuff{% endif %}
{% endcomment %}
block comment with invalid tags inside of it
{% comment %}
{% if thing %}
{% endcomment %}
block comment with invalid syntax inside of it
{% comment %}
{% thing('') %}
{% endcomment %}
Regular tags between comments to verify it doesn't break in the lexer
{% if hello %}
{% endif %}
after if
{% comment %}All done{% endcomment %}
end of file