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:
def status(code): match code: case 0: return "OK" # correct highlight case -1: # correct highlight return "Error" case -2: # no highlight return "Big Error" case _: # no highlight return "Unknown status"
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS