Files
openide/python/testData/psi/PatternMatchingRecoveryNoPatternAfterCaseInIntermediateCaseClause.py
Mikhail Golubev 20097f7a69 PY-49785 Properly recover from "case" keyword in the middle of a match statement
Not stopping at a statement break token and continuing recovery until a colon,
we considered the subsequent well-formed case clause to be a part of an error
message about a missing pattern, thus, moving the caret to its colon.

GitOrigin-RevId: f4ee0e12876960e989de3dee89925b65e3cf2339
2021-07-19 16:29:15 +00:00

6 lines
73 B
Python

match x:
case True:
pass
case
case True:
pass