vscode-saltstack icon indicating copy to clipboard operation
vscode-saltstack copied to clipboard

some JINJA wrongly highlighted

Open stratusjerry opened this issue 2 years ago • 0 comments

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 }}
    

stratusjerry avatar Mar 29 '22 18:03 stratusjerry