Skip to content

Fix closing curly brace coloring

Jinja2 syntax delimiters are missing coloring on the closing braces. This change adds the missing :tail-mode attribute to the pm-inner/jinja2 defcustom.

Specifically, Statement - "{% ... %}", Expression - "{{ ... }}", and Comment "{# ... #}" delimiters all correctly color the opening bracket, but closing brackets are rendered in the default face. This change fixes that. Prior to this change, every form of closing brace would be displayed incorrectly in these two test expressions:

    test: "{% some_statement %}{{ some_expression }}{# some_comment #}"
    test: "{{ lookup('community.fake.plugin', var1 + ' ' + var2 }}"

...with the change, both render as expected

I'm running Emacs compiled from git: GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6) of 2022-09-27

Merge request reports