Skip to content

Ordinal number in identifier classified as typo #466

@foriequal0

Description

@foriequal0

#410 seems to fix only 2nd__ or __3rd at the identifier tokenizer level.
Variable names such as level_2nd are split as ["level", "2", "nd"] by the SplitIdent.
I think I can fix it by marking words whether they might be ordinal suffixes or not and then using a different dictionary according to that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tokenArea: tokenization, including definition of identifiers and wordsC-enhancementCategory: Raise on the bar on expectationsS-waiting-on-decisionStatus: Waiting on a go/no-go before implementing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions