Skip to content

XID_Continue Unicode characters in function/class names highlighted incorrectly (colorizer.py) #135052

Open
@Mehdical-Man

Description

@Mehdical-Man

Bug report

Bug description:

def 4545(): # “4545” highlighted correctly
               # because identifiers cannot
               # start with digits

being highlighted:

How it should render

Image

How it renders instead

Image

class MID·DOT(): 

How it should render

Image

How it renders instead

Image
“·” (U+00B7) is a XID_Continue character

CPython versions tested on:

3.15, 3.14, 3.13, 3.9, 3.10, 3.11, 3.12

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions