Skip to content

jinja {% raw %} not honored #11

@rubinlinux

Description

@rubinlinux

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 %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions