Skip to content

Reject underscores after a decimal point in numeric literals #183

Description

@timfennis

Problem

The number lexer ignores underscores throughout a decimal literal. This accepts forms such as 1.0_0, although separators after the decimal point are likely unintended.

Desired outcome

Reject or otherwise explicitly define separators in the fractional part, with regression tests.

Location

ndc_lexer/src/number.rs, lex_number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions