Skip to content
This repository was archived by the owner on Feb 20, 2022. It is now read-only.
This repository was archived by the owner on Feb 20, 2022. It is now read-only.

Stop repeating the language patterns in f-string #38

@petervaro

Description

@petervaro

Right now, the valid python expressions are recognised between the opening { and either an !, or a : or the closing }. meaning: it is very easy to start the pattern again, and producing invalid format string interpolation.

f'{None:{None!{None'
#  ^     ^     ^
#  all highlighted

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions