<p></p>
<p>A certain Neil Hodgson seems to have looked at this but I have no idea what he's saying:</p>
<ul>
<li>Description has changed:</li>
</ul>
<p>Diff:</p>
<pre><code>
--- old
+++ new
@@ -1,4 +1,4 @@
-~~~
+~~~zsh
 
 function test2
 {

</code></pre>
<ul>
<li><strong>Comment</strong>:</li>
</ul>
<p>A simpler example is:</p>
<div class="highlight highlight-source-shell"><pre><span class="pl-c"><span class="pl-c">#</span> comment \</span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span>not a comment<span class="pl-pds">"</span></span></pre></div>
<p>which displays <code>not a comment</code> when run with zsh or bash.</p>
<p>There are separate elements in the zsh documentation for continuation and comments with no information on priority.</p>
<p><a href="http://zsh.sourceforge.net/Doc/Release/Shell-Grammar.html#Quoting" rel="nofollow">http://zsh.sourceforge.net/Doc/Release/Shell-Grammar.html#Quoting</a> :</p>
<blockquote>
<p>A character may be quoted (that is, made to stand for itself) by preceding it with a ‘\’. ‘\’ followed by a newline is ignored.</p>
</blockquote>
<p><a href="http://zsh.sourceforge.net/Doc/Release/Shell-Grammar.html#Comments" rel="nofollow">http://zsh.sourceforge.net/Doc/Release/Shell-Grammar.html#Comments</a> :</p>
<blockquote>
<p>a word beginning with the third character of the histchars parameter (‘#’ by default) causes that word and all the following characters up to a newline to be ignored.</p>
</blockquote>
<hr>
<p>** [bugs:<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="471674525" data-permission-text="Title is private" data-url="https://github.com/geany/geany/issues/2226" data-hovercard-type="issue" data-hovercard-url="/geany/geany/issues/2226/hovercard" href="https://github.com/geany/geany/issues/2226">#2226</a>] zsh 5.8 on Debian Stretch.**</p>
<p><strong>Status:</strong> open-accepted<br>
<strong>Group:</strong> Bug<br>
<strong>Labels:</strong> lexilla lexer bash zsh<br>
<strong>Created:</strong> Wed Dec 30, 2020 12:59 AM UTC by Ray Andrews<br>
<strong>Last Updated:</strong> Wed Dec 30, 2020 09:38 PM UTC<br>
<strong>Owner:</strong> nobody</p>
<div class="highlight highlight-source-shell"><pre><span class="pl-k">function</span> <span class="pl-en">test2</span>
{
<span class="pl-c"><span class="pl-c">#</span> this is a comment\</span>
is this a comment continued on the next line<span class="pl-k">?</span>
}</pre></div>
<p>zsh treats the second line as code, but it highlights as a continuation of the comment.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2715#issuecomment-752775301">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ3V7DR4QRA2GT2YCLTSXORLXANCNFSM4VNPPFKQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ7FJXGIB24LQ5TUHWTSXORLXA5CNFSM4VNPPFK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFTPHBBI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2715#issuecomment-752775301",
"url": "https://github.com/geany/geany/issues/2715#issuecomment-752775301",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>