diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-29 16:26:03 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-29 16:26:03 +0200 |
commit | 46b09b0d5b3cb45d8e62851c40b418a3b9f20af4 (patch) | |
tree | cfc15c83f83ec7344a431d93c21a0c0474d63645 /tests | |
parent | 63f43f3b01a910444176eeb972c88964ebb87e45 (diff) | |
download | vim-polyglot-46b09b0d5b3cb45d8e62851c40b418a3b9f20af4.tar.gz vim-polyglot-46b09b0d5b3cb45d8e62851c40b418a3b9f20af4.zip |
Remove {{ }} from detecting htmldjango, #560
Diffstat (limited to 'tests')
-rw-r--r-- | tests/extensions.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/extensions.vim b/tests/extensions.vim index 7f6adb9e..45ee6c7d 100644 --- a/tests/extensions.vim +++ b/tests/extensions.vim @@ -364,12 +364,14 @@ call TestExtension("tt2html", "html.tt2", "<html>") call TestExtension("html", "empty.html", "") call TestExtension("mason", "mason1.html", "% my $planet = 42;") call TestExtension("mason", "mason2.html", "<%filter></%filter>") -call TestExtension("htmldjango", "jinja1.html", "{{ item.href }}") call TestExtension("htmldjango", "jinja2.html", "{% for item in navigation %}{% endfor %}") call TestExtension("htmldjango", "jinja3.html", "{% block head %}") call TestExtension("htmldjango", "jinja4.html", "{# some comment #}") call TestExtension("xhtml", "xhtml.html", "<DTD XHTML ") +" many html templates use {{ }}, e.g. Angular, we should not assume django +call TestExtension("html", "template.html", "{{ item.href }}") + " .gitignore call TestExtension("gitignore", ".gitignore", "") |