Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Mehdical-Man opened this issue Jun 2, 2025 · 0 comments
Labels
OS-windows topic-IDLE type-bug An unexpected behavior, bug, or error

Comments

@Mehdical-Man
Copy link

Mehdical-Man commented Jun 2, 2025

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

@Mehdical-Man Mehdical-Man added the type-bug An unexpected behavior, bug, or error label Jun 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-windows topic-IDLE type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants