Page 1 of 1

Incorrect variable highlighting.

Posted: Thu Jun 13, 2013 11:47 pm
by Prostoy Paren
CodeLite 5.1 downloaded from sourceforge. Windows7.

Variable 'VertLabSz' is incorrect highlighted in the code below:

Code: Select all

#include <stdio.h>
#define ERRVAL 0

int main(int argc, char **argv)
{
	int HorizLabSz = ERRVAL, VertLabSz = ERRVAL;
	
	printf( "%i, %i", HorizLabSz, VertLabSz);
	
	return 0;
}

I've tried to upload attachment screenshot, but unsuccessfully. On this screenshot variable 'HorizLabSz' colored as 'Syntax Highlight/Customize/Local variables', but the 'VertLabSz' colored as 'Syntax Highlight/Customize/Identifier'.


Prostoy Paren

Re: Incorrect variable highlighting.

Posted: Fri Jun 14, 2013 4:54 pm
by solewalker
I too was able to reproduce this bug with codelite 5.2 on windows 7. I noticed it before, but did not think much about it as I don't declare multiple variables in a single line. Here is a screenshot
Image

Simple fix is to declare them in multiple line like below, its also a good coding convention to follow.
Image

Re: Incorrect variable highlighting.

Posted: Sat Jun 15, 2013 10:04 am
by eranif
There is a bug open for this in SF

Eran