summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-09-24 10:50:19 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-09-24 10:50:19 +0200
commite2bbed8acc1f1cf498a0085cf771cf9bf40fb709 (patch)
tree001f4955c399ac71b34fa38f2a3bd63526df50d6 /tests
parent6b4da2753814cc61cd842c589d829f03cd7ca98d (diff)
downloadvim-polyglot-e2bbed8acc1f1cf498a0085cf771cf9bf40fb709.tar.gz
vim-polyglot-e2bbed8acc1f1cf498a0085cf771cf9bf40fb709.zip
Fix django highlighting, fixes #553
Diffstat (limited to 'tests')
-rw-r--r--tests/extensions.vim15
-rw-r--r--tests/filetypes.vim5
2 files changed, 14 insertions, 6 deletions
diff --git a/tests/extensions.vim b/tests/extensions.vim
index d6f63407..ca42edbb 100644
--- a/tests/extensions.vim
+++ b/tests/extensions.vim
@@ -201,6 +201,13 @@ call TestExtension("cpp", "foobar.moc", "")
call TestExtension("cpp", "foobar.tcc", "")
call TestExtension("cpp", "foobar.inl", "")
+" Django
+
+call TestExtension("htmldjango", "foobar.j2", "")
+call TestExtension("htmldjango", "foobar.jinja", "")
+call TestExtension("htmldjango", "foobar.jinja2", "")
+call TestExtension("htmldjango", "foobar.njk", "")
+
" vim-polyglot only
call TestExtension("blade", "test.blade.php", "")
call TestExtension("yaml.ansible", "playbook.yml", "")
@@ -356,8 +363,8 @@ 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("jinja.html", "jinja1.html", "{{ item.href }}")
-call TestExtension("jinja.html", "jinja2.html", "{% for item in navigation %}{% endfor %}")
-call TestExtension("jinja.html", "jinja3.html", "{% block head %}")
-call TestExtension("jinja.html", "jinja4.html", "{# some comment #}")
+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 ")
diff --git a/tests/filetypes.vim b/tests/filetypes.vim
index 3128a730..8d077072 100644
--- a/tests/filetypes.vim
+++ b/tests/filetypes.vim
@@ -95,7 +95,8 @@ call TestFiletype('graphql')
call TestFiletype('groovy')
call TestFiletype('grub')
call TestFiletype('haml')
-call TestFiletype('mustache')
+call TestFiletype('html.mustache')
+call TestFiletype('html.handlebars')
call TestFiletype('haskell')
call TestFiletype('haxe')
call TestFiletype('hcl')
@@ -108,7 +109,7 @@ call TestFiletype('idris2')
call TestFiletype('lidris2')
call TestFiletype('ion')
call TestFiletype('Jenkinsfile')
-call TestFiletype('jinja.html')
+call TestFiletype('htmldjango')
call TestFiletype('jq')
call TestFiletype('json5')
call TestFiletype('json')