Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
Qt Creator 15.0.0-beta1
-
None
Description
Have the following code:
double foo() double foo() { int i = -1234; float f = -1234.f; double d = -1234.0; double e = -1234.0E5; return i + f + d + e; }
and note that the minus-signs are highlighted like operators.
In my opinion, they belong to the number (like the `.f` or `.0`, or `.0E5`, which are all highlighted as part of the number).
I'm aware that the compiler also treats `- 1234` as valid negative sign, but in this case I would leave the highlighting as is (I also think it is bad style to write numbers like that).