jinja2-mode icon indicating copy to clipboard operation
jinja2-mode copied to clipboard

Syntax highlighting unstable when comparison operator in tag

Open ZedThree opened this issue 2 years ago • 0 comments

The syntax highlighting in my files randomly turns on and off, and the following error sometimes appears:

Error during redisplay: (jit-lock-function 22985) signaled (cl-assertion-failed (>= (cadr sgml--syntax-propertize-ppss) 0))

I managed to boil it down to this :

{% if foo > 0 %}
{% endif %}

If I put the cursor on either the first opening { or the >, they both get highlighted in red, presumably because the greater-than symbol is getting parsed as an incorrect closing match for the opening parenthesis.

ZedThree avatar Aug 17 '22 13:08 ZedThree