fix parsing comment tag delimiter with extra strings

This commit is contained in:
Michael Go
2023-11-10 15:42:54 -04:00
parent 41f65173b0
commit 6dafc19b6d
2 changed files with 19 additions and 0 deletions
+14
View File
@@ -107,4 +107,18 @@ class CommentTagUnitTest < Minitest::Test
assert_equal(expected, output)
end
def test_comment_tag_delimiter_with_extra_strings
assert_template_result(
'',
<<~LIQUID.chomp,
{% comment %}
{% comment %}
{% endcomment
{% if true %}
{% endif %}
{% endcomment %}
LIQUID
)
end
end