Let's start with:
```
andreas@duelitri:~$ geany -V
geany 1.27 (generato il 2016-03-13 conGTK 2.24.30, GLib 2.46.2)
```
(you miss a space after 'con' in the Italian translation, but this is not the 
issue at hand).

Reproduce the issue with the following script (bash):
```
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
```
this generates a file with 1023 `a`, a `;` in the 1024th place and text after 
the `;`, which, you guessed it, is highlighted as a comment even if it 
shouldn't be.

The key to this seems to be having a `;` 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.
Same for the "Conf" filetype, tried several and only this one seems to be 
affected.

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

Extremely minor, but though you may want to know.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/996

Reply via email to