<p>Let's start with:</p>

<pre><code>andreas@duelitri:~$ geany -V
geany 1.27 (generato il 2016-03-13 conGTK 2.24.30, GLib 2.46.2)
</code></pre>

<p>(you miss a space after 'con' in the Italian translation, but this is not the issue at hand).</p>

<p>Reproduce the issue with the following script (bash):</p>

<pre><code>echo -n a > /tmp/a.conf; for ((i=2; i<=1023; i++)); do echo -n a >> /tmp/a.conf; done; echo \;this is red but it shouldn\'t be >> /tmp/a.conf
</code></pre>

<p>this generates a file with 1023 <code>a</code>, a <code>;</code> in the 1024th place and text after the <code>;</code>, which, you guessed it, is highlighted as a comment even if it shouldn't be.</p>

<p>The key to this seems to be having a <code>;</code> in the 1024th place in the line, I tried several other chars and didn't get the problem, though I didn't try them all systematically.<br>
Same for the "Conf" filetype, tried several and only this one seems to be affected.</p>

<p>Once this bug is triggered, a <code>;</code> in place 2048 will make the text black again and so on every 1024 (yay for 10bit overflowing, I guess).</p>

<p>Extremely minor, but though you may want to know.</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 or <a href="https://github.com/geany/geany/issues/996">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ_phm_1npI6jFfkuG6dlRzAKWW4gks5p2rk_gaJpZM4IE0bw.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/996"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>