Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
None
-
Qt Creator 2.5.0-beta
Description
The following code is not parsed correctly by the syntax highlighter.
class Base { int member; }; class Derived : public Base { public: Derived() { this->Base::member = 10; } };
Here, in the Base::member initialization, Base is highlighted as if it was a data member of the class and ::member is black (I assume, it is not recognized at all). The parser should first recognize the :: operator, which results in Base being a class name and member being the class member.