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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy