Skip to content

@name doesn't work when using rules with Model class names added to it #363

@Popaulol

Description

@Popaulol

In my code i have a specific Ident class to store identifiers, instead of a simple str since i need to handle some additional metadata for them.

The following grammar rule however does not respect my definited keywords and just parses every possible string matching the regex:

@name
identifier::Ident = /[_a-zA-Z][_a-zA-Z0-9]*/;

if i remove the ::Ident (breaking the rest of my code) the keyword detection starts working properly again and errors on missused keywords:

@name
identifier = /[_a-zA-Z][_a-zA-Z0-9]*/;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions