lepture / vim-jinja

jinja plugins for vim (syntax and indent)
150 stars 22 forks source link

jinja {% raw %} not honored #11

Open rubinlinux opened 8 years ago

rubinlinux commented 8 years ago

Hi,

I have a complicated file (exim config file) which I want to process with jinja. It uses a lot of { syntax for its logic, so I wrap those in {% raw %} and {% endraw %}. Your colorizer should see these and not try to color or parse code contained within them (as jinja does). However, it does not seem to. Code inside the raw block throws off the syntax highlighter.

For example:

{% raw %}
MAX_PHYSICAL_HEADER_LENGTH = \
   ${reduce\
      {<\n ${map{<\n$message_headers_raw}{${strlen:$item}}}}\
      {0}\
      {${if >{$item}{$value}{$item}{$value}}}\
   }

{% endraw %}
niftylettuce commented 8 years ago

What is your file extension? @rubinlinux