Skip to content

Commit eb3f8bc

Browse files
committed
fix type statement highlight after DEDENT
1 parent 948a0b0 commit eb3f8bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/_pyrepl/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def is_soft_keyword_used(*tokens: TI | None) -> bool:
258258
case (TI(string="case"), TI(string="_"), TI(string=":")):
259259
return True
260260
case (
261-
None | TI(T.NEWLINE) | TI(T.INDENT) | TI(string=":"),
261+
None | TI(T.NEWLINE) | TI(T.INDENT) | TI(T.DEDENT) | TI(string=":"),
262262
TI(string="type"),
263263
TI(T.NAME, string=s)
264264
):

0 commit comments

Comments
 (0)