mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-134953: Expand theming for True/False/None (#135000)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
parent
67cc1cf68a
commit
a5b9d0b8b2
3 changed files with 6 additions and 0 deletions
|
|
@ -196,6 +196,9 @@ def gen_colors_from_token_stream(
|
|||
is_def_name = False
|
||||
span = Span.from_token(token, line_lengths)
|
||||
yield ColorSpan(span, "definition")
|
||||
elif token.string in ("True", "False", "None"):
|
||||
span = Span.from_token(token, line_lengths)
|
||||
yield ColorSpan(span, "keyword_constant")
|
||||
elif keyword.iskeyword(token.string):
|
||||
span = Span.from_token(token, line_lengths)
|
||||
yield ColorSpan(span, "keyword")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue