Highlighting fails for jinja2 templates including a modulo operator '%'

Issue #1335 new
Anonymous created an issue

The highlighting of jinja2 template fails in sphinx when the '%' modulo operator is present. The problem seems to be the pygment lexer to handle the '%' modulo operator correct.

This short example fails to get highlighted in sphinx:

.. code-block:: jinja

   {% for _ in range(24) %} {{ loop.index % 10 }}{% endfor %}

Comments (0)

  1. Log in to comment