Hi,
Johnathan wrote:
>
> When editing some .cc files (no apparent pattern), I seem to get some
> weird can't-be-turned-off red highlighting. Some code snippet:
>
>
> 1 int main()
> 2 {
> 3 if (1=1)
> 4 [
> 5 fail.push_back(students[i]);
> 6 else
> 7 pass.push_back(students[i]);
> 8 }
>
> without the [ on line 4, everything is colour-free.
>
> As soon as I put the [ in line 4, the ;'s on line 5 & 7 as well as the }
> on line 8.
I would guess it's some kind of error highlighting -- semicolons are not
allowed inside square brackets (unless they are inside a string or a
comment) -- and because the square bracket has not been closed the
closing curly brace in line 8 is an error, too.
Regards,
Jürgen
--
Jürgen Krämer Softwareentwicklung
HABEL GmbH & Co. KG mailto:[EMAIL PROTECTED]
Hinteres Öschle 2 Tel: +49 / 74 61 / 93 53 - 15
78604 Rietheim-Weilheim Fax: +49 / 74 61 / 93 53 - 99