Skip to content

Supports union completion in structs - #86

Merged
SogoCZE merged 1 commit into
SogoCZE:parserfrom
kunos:parser
Jan 15, 2026
Merged

SogoCZE merged 1 commit into
SogoCZE:parserfrom
kunos:parser

Conversation

@kunos

@kunos kunos commented Jan 5, 2026

Copy link
Copy Markdown
Contributor

Now supports unions in struct, so it correctly autocompletes something like:

Light :: struct {
    type: LightType;
    union {
        point: struct {
            position: Vec3f;
            color: Vec3f;
            intensity: float;
            range: float;
        }
        spot: struct {
            position: Vec3f;
            color: Vec3f;
            intensity: float;
            range: float;
            direction: Vec3f;
            inner_cone: float;
            outer_cone: float;
        }
    }
}

image

NOTE: I've also tweaked the build file to output natvis compatible types with the X64 backend in debug to improve the debug experience with proper arrays, strings etc support.

@SogoCZE
SogoCZE merged commit dfa1bcf into SogoCZE:parser Jan 15, 2026
@SogoCZE

SogoCZE commented Jan 15, 2026

Copy link
Copy Markdown
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants