Skip to content

Add XID identifier validation for type and attribute names #8

@CaliLuke

Description

@CaliLuke

Add Unicode XID validation when registering types and parsing attribute names. Python's type-bridge validates _is_xid_start() / _is_xid_continue() per Unicode spec.

Use unicode.IsLetter for start, unicode.IsLetter || unicode.IsDigit || '-' || '_' for continue.

Files: gotype/reserved.go or gotype/tags.go, plus unit tests with non-ASCII names

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions