fix parsing nested comment tag with extra strings

This commit is contained in:
Michael Go
2023-11-11 12:19:44 -04:00
parent 6dafc19b6d
commit 6a5ebb0e85
2 changed files with 20 additions and 3 deletions
+14
View File
@@ -121,4 +121,18 @@ class CommentTagUnitTest < Minitest::Test
LIQUID
)
end
def test_nested_comment_tag_with_extra_strings
assert_template_result(
'',
<<~LIQUID.chomp,
{% comment %}
{% comment
{% assign foo = 1 %}
{% endcomment
{% assign foo = 1 %}
{% endcomment %}
LIQUID
)
end
end