Files
tree-sitter-django/test/corpus/comment.txt
T

74 lines
1019 B
Plaintext

==================
Comment Basic
==================
{% comment %}
This is ignored
{% endcomment %}
---
(template
(content)
(comment_group
(comment_clause
(comment_block)
(comment_content))
(endcomment_block))
(content))
==================
Comment Empty
==================
{% comment %}{% endcomment %}
---
(template
(content)
(comment_group
(comment_clause
(comment_block))
(endcomment_block))
(content))
==================
Comment With Note
==================
{% comment "why" %}
This is ignored
{% endcomment %}
---
(template
(content)
(comment_group
(comment_clause
(comment_block
(string))
(comment_content))
(endcomment_block))
(content))
==================
Comment Ignores Tag Like Text
==================
{% comment %}
Contains {% if x %} tag-like text
{% endcomment %}
---
(template
(content)
(comment_group
(comment_clause
(comment_block)
(comment_content))
(endcomment_block))
(content))