Revert "Merge pull request #256 from Shopify/unknown_tags_in_comments"

This reverts commit 1ae8c0e90a, reversing
changes made to 01d352bc51.
This commit is contained in:
Florian Weingarten
2013-09-11 12:13:55 -04:00
parent 1ae8c0e90a
commit f938756a58
2 changed files with 1 additions and 9 deletions
+1 -3
View File
@@ -1,7 +1,5 @@
require "liquid/tags/raw"
module Liquid
class Comment < Raw
class Comment < Block
def render(context)
''
end
-6
View File
@@ -34,12 +34,6 @@ class StandardTagTest < Test::Unit::TestCase
assert_template_result('','{%comment%}comment{%endcomment%}')
assert_template_result('','{% comment %}comment{% endcomment %}')
assert_template_result('','{%comment%}{%blabla%}{%endcomment%}')
assert_template_result('','{% comment %}{% blabla %}{% endcomment %}')
assert_template_result('','{%comment%}{% endif %}{%endcomment%}')
assert_template_result('','{% comment %}{% endwhatever %}{% endcomment %}')
assert_template_result('','{% comment %} {{ %} {{%%%}} {% endcomment {% endcomment %}')
assert_template_result('foobar','foo{%comment%}comment{%endcomment%}bar')
assert_template_result('foobar','foo{% comment %}comment{% endcomment %}bar')
assert_template_result('foobar','foo{%comment%} comment {%endcomment%}bar')