linters: Handle comments better in template parser.

We now properly parse HTML comments that have HTML
block tags or handlebars/Django blocks within them.
This commit is contained in:
Steve Howell
2017-02-02 19:26:35 -08:00
committed by Tim Abbott
parent aafb1c70f0
commit bcfe1bcdbe
2 changed files with 27 additions and 3 deletions

View File

@@ -59,6 +59,14 @@ class ParserTest(unittest.TestCase):
'''
validate(text=my_html)
def test_validate_comment(self):
# type: () -> None
my_html = '''
<!---
<h1>foo</h1>
-->'''
validate(text=my_html)
def test_validate_django(self):
# type: () -> None
my_html = '''