mirror of
https://github.com/HiPhish/rainbow-delimiters.nvim.git
synced 2024-09-16 14:24:05 +02:00
Add support for Django HTML templates
This commit is contained in:
parent
073e45546a
commit
c5b3067601
3 changed files with 31 additions and 0 deletions
|
@ -17,6 +17,8 @@ Added
|
|||
|
||||
- Recipes section in the manual
|
||||
|
||||
- Django HTML support (preliminary, will only pass through injected languages)
|
||||
|
||||
- WebGL Shading Language (WGSL) support
|
||||
|
||||
- Missing patterns for C++:
|
||||
|
|
3
queries/htmldjango/rainbow-delimiters.scm
Normal file
3
queries/htmldjango/rainbow-delimiters.scm
Normal file
|
@ -0,0 +1,3 @@
|
|||
;;; Intentionally empty. A Django template contains HTML, and this file exists
|
||||
;;; so that the HTML nodes can be highlighted. This query only exists to
|
||||
;;; satisfy the requirements of this plugin.
|
26
test/highlight/htmldjango/regular.html
Normal file
26
test/highlight/htmldjango/regular.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
{# This is a comment #}
|
||||
|
||||
{% extends 'some/other/template.html' %}
|
||||
{% load some_lib %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
<ul>
|
||||
{% for user in users %}
|
||||
<li>
|
||||
{{ user.name }}
|
||||
{% if user == current_user %}
|
||||
(you)
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<div>
|
||||
<h3>Some title</h3>
|
||||
<p>
|
||||
This is some <em><strong>dummy</strong></em> template for testing.
|
||||
</p>
|
||||
<hr />
|
||||
</div>
|
||||
{% endblock %}
|
Loading…
Reference in a new issue