Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Repl syntax highlighting fails in pattern matching when the previous case spans across multiple lines #136801

Closed
Labels
stdlibStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error
@olgarithms

Description

@olgarithms

Bug report

Bug description:

There is a bug in the new repl syntax highlighting when using pattern matching with cases spawning across new lines.

To reproduce:

defstatus(code):matchcode:case0:return"OK"# correct highlightcase-1:# correct highlightreturn"Error"case-2:# no highlightreturn"Big Error"case _:# no highlightreturn"Unknown status"

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp