cylc / cylc-textmate-grammar

TextMate grammar for Cylc workflow configuration files
BSD 3-Clause "New" or "Revised" License
0 stars 5 forks source link

Jinja2 in Cylc comment should not show as a comment #32

Closed MetRonnie closed 1 year ago

MetRonnie commented 2 years ago

E.g.

#!jinja2
# {% set x = 12 %}

Even though the Jinja2 statement is in a Cylc comment, it still gets executed at parse-time. So it should not be tokenised as a comment.

(Jinja2 comments are done by {# this is a comment #})