Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jinja {% raw %} not honored #11

Open
rubinlinux opened this issue Nov 11, 2016 · 1 comment
Open

jinja {% raw %} not honored #11

rubinlinux opened this issue Nov 11, 2016 · 1 comment

Comments

@rubinlinux
Copy link

rubinlinux commented Nov 11, 2016

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
Copy link
Contributor

What is your file extension? @rubinlinux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants