Skip to content

Commit

Permalink
comment grammar tests #152
Browse files Browse the repository at this point in the history
  • Loading branch information
panoply committed Feb 26, 2023
1 parent 713c9a5 commit 8509cf0
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions test/syntax/comments.liquid
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
{% # COMMENT KEYWORD %}

{% if blog.comments_enabled? %}

{% endif %}
{% if blog.comments_enabled? %}{% endif %}

{% # COMMENT KEYWORD %}

{% for comment in article.comments %}
{% for comment in article.comments %}{% endfor %}

{% # COMMENT KEYWORD %}

{% assign comment = endcomment %}

<div
id="xxx"
{% # COMMENT %}
class="some-class"
data-{{ additional_checkout_buttons }}></div>

<div
id="xxx"
{% comment %}
class="some-class"
{% endcomment %}
data-attribute="xxx"></div>

{% endfor %}
{% liquid
comment
foo
endcomment %}

0 comments on commit 8509cf0

Please sign in to comment.