title: How can I comment in a Jinja directive?
body: <p>I have a Jinja <code>set</code> directive as follows:</p>
  
  <pre><code>{% set mylist = [
    "item 1",
    "another item",
    "yet another item",
  ] %}
  </code></pre>
  
  <p><strong>I would like to add a comment to the second list item. Does Jinja support that?</strong> I've tried the following:</p>
  
  <pre><code>{% set mylist = [
    "item 1",
    "another item",  # My comment
    "yet another item",
  ] %}
  </code></pre>
  
  <p>and</p>
  
  <pre><code>{% set mylist = [
    "item 1",
    "another item",  ## My comment
    "yet another item",
  ] %}
  </code></pre>
  
  <p>, but none of them work. I'm using Jinja 2.6.</p>