Skip to content

Commit 9d8bb5b

Browse files
committed
Don't use exact token types
1 parent cbcf063 commit 9d8bb5b

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
@@ -239,7 +239,7 @@ def gen_colors_from_token_stream(
239239
yield ColorSpan(span, "soft_keyword")
240240
elif (
241241
token.string in COMMANDS
242-
and (not prev_token or prev_token.exact_type == T.INDENT)
242+
and (not prev_token or prev_token.type == T.INDENT)
243243
and (not next_token or next_token.type == T.NEWLINE)
244244
):
245245
span = Span.from_token(token, line_lengths)

0 commit comments

Comments
 (0)