Vim-Jinja2-Syntax icon indicating copy to clipboard operation
Vim-Jinja2-Syntax copied to clipboard

Fix matchit functionality

Open icook opened this issue 11 years ago • 4 comments

This is an old file plugin that I managed to dig up that makes matchit work for Jinaj2 templates. There's probably some un-needed stuff in there, but it hasn't broken anything for me.

icook avatar Jul 07 '13 03:07 icook

This is extremely useful. Would be great if it could be merged into the main project. For the moment I'm going to switch to icook's repo to get this behaviour..

aidos avatar Nov 03 '14 12:11 aidos

:+1:

But I had some problems with matching the following:

{% if (apt is defined and apt) and apt != True %}
Acquire::http::Proxy "http://{{ apt }}:{{ apt_acng_port | default('3142') }}/";
Acquire::https::Proxy "false";
{% endif %}

So I am using the fork from chase who found a fix for this.

ypid avatar Feb 15 '15 11:02 ypid

@icook Was this PR meant to enable % matching on Jinja control flow like {% if … %} and {% for … %}, or just to get % working for HTML tags again?

If the latter, I think #19 already addressed % for HTML tags (works for me with the latest master anyway), in which case this PR could be closed.

ernstki avatar Jun 15 '22 03:06 ernstki

@ernstki Hard to remember honestly, but by my read it was specifically for Jinja2. The aforementioned fork from chase sounds like a more robust solution.

icook avatar Jun 15 '22 17:06 icook