Skip to content

some JINJA wrongly highlighted #15

@stratusjerry

Description

@stratusjerry

Thanks for the great extension! I noticed a couple instances where the JINJA highlighting is wrong:

  1. Commented JINJA after YAML value is not properly highlighted as comments
    {% set Stuff = "/tmp/baz.json" %}
    example:
      file.managed:
        - name: /tmp/foo.json {# {{ Stuff }} #}
  2. JINJA text highlighting for this case should NOT be commented, as JINJA will render and replace the YAML '#'
    # {% set Stuff = "/tmp/baz.json" %}
    example:
      file.managed:
        - name: {{ Stuff }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions