Syntax highlighting on variable initialisation
Posted: Mon May 02, 2016 1:14 am
I have written the following code to initialise three variables of the same type on one line. This is valid syntax however the second a third variables don't highlight in green on the first line or when used subsequently in the second line as if CodeLite doesn't recognise this syntax:
double num = 0, small = 0, large = 0;
cout<<num<<small<<large;
double num = 0, small = 0, large = 0;
cout<<num<<small<<large;