Skip to content

Conversation

@Starexify
Copy link

@Starexify Starexify commented Jan 19, 2026

This PR adds correct parsing for optional and extensions in typedefs.

For example this snippet:

typedef TestTypedef = {
	var id:Int;
	var data:T;
	var ?version:Float;
}

typedef ExtendedTypedef = {
	> TestTypedef,
	var description:String;
}

The hscript parser would complain (images below) about the unexpected > and ? symbols before, but now it parses correctly the extensions and optional fields like version.

image image

@Starexify Starexify changed the title [ENHANCEMENT] Add extension and optional fields parsing for typedefs. [ENHANCEMENT] Add extensions and optional fields parsing for typedefs. Jan 19, 2026
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.

1 participant