Skip to content

Add support for PEP 701 in the lexer #7042

@dhruvmanila

Description

@dhruvmanila

The task is to update the lexer to emit the new tokens for PEP 701: FStringStart, FStringMiddle and FStringEnd. Along with these, a new token Exclamation needs to be added for conversion flag (f"{foo!s}") as it's now part of the expression.

Some of the error handling which was previously done in the parser will need to be moved into the lexer.

Metadata

Metadata

Assignees

Labels

parserRelated to the parserpython312Related to Python 3.12

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions