Skip to content

Commit e89085f

Browse files
committed
fix: follow up comments
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
1 parent a625cec commit e89085f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/_pyrepl/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,7 @@ def gen_colors_from_token_stream(
210210
yield ColorSpan(span, "soft_keyword")
211211
elif (
212212
token.string in BUILTINS
213-
and not (prev_token and prev_token.type == T.OP
214-
and prev_token.string == ".")):
213+
and not (prev_token and prev_token.exact_type == T.DOT)):
215214
span = Span.from_token(token, line_lengths)
216215
yield ColorSpan(span, "builtin")
217216

0 commit comments

Comments
 (0)