Author Topic: Color coding not working on enum class within class/ns  (Read 119 times)

TKasparek

  • Senior Community Member
  • Posts: 175
  • Hero Points: 21
Color coding not working on enum class within class/ns
« on: August 08, 2017, 07:01:55 pm »
The following example does not color the MyEnumVal0 part of 8th line in cpp file, namespace surround is required for this to happen.

se_example.cpp
Code: [Select]
#include <cstdint>
#include <se_example.hpp>

namespace MyNameSpace {

MyClass::MyClass() {

    myVar = MyEnumClass::MyEnumVal0; // MyEnumVal0 shows "Symbol not found" on hover.
}

}  // MyNameSpace

int main(void) {

    MyNameSpace::MyClass myClassVar;
}


se_example.hpp
Code: [Select]
#include <cstdint>

namespace MyNameSpace {

class MyClass {

public:

    MyClass();

private:

    enum class MyEnumClass : uint8_t {
        MyEnumVal0 = 0,
        MyEnumVal1 = 1,
        MyEnumVal2 = 2,
        MyEnumVal3 = 3,
    };

    MyEnumClass myVar;
};

}  // MyNameSpace

TKasparek

  • Senior Community Member
  • Posts: 175
  • Hero Points: 21
Re: Color coding not working on enum class within class/ns
« Reply #1 on: August 15, 2017, 05:24:53 pm »
This also doesn't work in SE 2017...

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2112
  • Hero Points: 266
Re: Color coding not working on enum class within class/ns
« Reply #2 on: August 17, 2017, 04:21:37 pm »
Thanks for the good example.  This will be fixed in beta3.