slynch8 / 10x

10x IDE/Editor
191 stars 35 forks source link

Comma seperated member variables not parsed when empty constructor exists #2791

Closed Muzza closed 1 month ago

Muzza commented 2 months ago

Bit of an odd one. See the below code. a.j.y is not parsed properly (and shows in white) But if I comment out the constructor to AAA or change it to be external, it fixes it. Note that you have to do a ReparseFile after making the change.

struct Vec2i
{
    int x,y;
};

struct AAA
{
    AAA() {}    // comment this out, or change to AAA(); to fix it
    Vec2i i,j;
};

void Func( void )
{
    AAA a;
    a.i.x;
    a.j.y;  // j.y is not parsed, unless you comment out the constructor to AAA()
}
slynch8 commented 2 months ago

That is a weird one, good find.

Fixed in early access build (1.0.214)

slynch8 commented 1 month ago

Fixed (1.0.218)