Skip to content

IDLE - support t-string prefix in colorizer #139742

@Locked-chess-official

Description

@Locked-chess-official

Bug report

Bug description:

In 3.14, the t-string is supported, but the IDLE still hardcodes the string prefix pattern (r, u, b, f, rb, br, fr, rf),
but does not delegate to the standard tokenize module.

The question of the hardcodes cannot fix quickly. However, change the code in make_pat here can fix the question above:

stringprefix = r"(?i:r|u|f|t|fr|rf|b|br|rb|rt|tr)?"

If there are more supported combinations we can add them.

CPython versions tested on:

3.14

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-IDLEtype-featureA feature request or enhancement

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions