Skip to content

Parser: unenforced non-keyword names on namespaced identifiers #37

@Alonely0

Description

@Alonely0

Minimal reproducible case: { if::while }; this should error out since neither are valid identifier names, as they're keyword names. The most unobtrusive solution is to validate on concrete Identifier construction in the parser, but it's probably best not to tokenize qualified identifiers at once and just produce a path :: token, which then the parser handles correctly during lowering (taking the next identifier and enforcing juxtaposition).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions