Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1b0d65f

Browse files
authored
[3.6]bpo-29706: IDLE now colors async and await as keywords in 3.6. (#6879)
They become full keywords in 3.7.
1 parent7c59a33 commit1b0d65f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎Lib/idlelib/colorizer.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def any(name, alternates):
1313
return"(?P<%s>"%name+"|".join(alternates)+")"
1414

1515
defmake_pat():
16-
kw=r"\b"+any("KEYWORD",keyword.kwlist)+r"\b"
16+
kw=r"\b"+any("KEYWORD",keyword.kwlist+ ['async','await'])+r"\b"
1717
builtinlist= [str(name)fornameindir(builtins)
1818
ifnotname.startswith('_')and \
1919
namenotinkeyword.kwlist]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
IDLE now colors async and await as keywords in 3.6. They become full
2+
keywords in 3.7.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp