jinja2-mode
jinja2-mode copied to clipboard
Syntax highlighting unstable when comparison operator in tag
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.