Skip to content

In the lexer, accept number suffixes that start with e. #67544

Open
@richard-uk1

Description

@richard-uk1

Currently, the lexer will reject tokens like 1.0etest expecting an exponent after the e. It could alternatively accept this token as LitFloat { value: 1.0, suffix: "etest" }. This would mean that proc macros could use suffixes that start with an e (although not the suffix e itself of course).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parserArea: The lexing & parsing of Rust source code to an ASTA-proc-macrosArea: Procedural macrosC-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-langRelevant to the language team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions