diff options
author | Tal Einat <532281+taleinat@users.noreply.github.com> | 2021-05-19 09:18:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-19 09:18:10 (GMT) |
commit | 60d343a81679ea90ae0e08fadcd132c16906a51a (patch) | |
tree | 1d9c2f8b8236cea70401485bc972d389b9617993 /Doc | |
parent | d798acc8733b605f7fc9c3c1a85cd14ee2a56add (diff) | |
download | cpython-60d343a81679ea90ae0e08fadcd132c16906a51a.zip cpython-60d343a81679ea90ae0e08fadcd132c16906a51a.tar.gz cpython-60d343a81679ea90ae0e08fadcd132c16906a51a.tar.bz2 |
bpo-44010: IDLE: colorize pattern-matching soft keywords (GH-25851)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/idle.rst | 6 | ||||
-rw-r--r-- | Doc/whatsnew/3.10.rst | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst index 3c30211..faa34e6 100644 --- a/Doc/library/idle.rst +++ b/Doc/library/idle.rst @@ -613,6 +613,12 @@ keywords, builtin class and function names, names following ``class`` and ``def``, strings, and comments. For any text window, these are the cursor (when present), found text (when possible), and selected text. +IDLE also highlights the :ref:`soft keywords <soft-keywords>` :keyword:`match`, +:keyword:`case <match>`, and :keyword:`_ <wildcard-patterns>` in +pattern-matching statements. However, this highlighting is not perfect and +will be incorrect in some rare cases, including some ``_``-s in ``case`` +patterns. + Text coloring is done in the background, so uncolorized text is occasionally visible. To change the color scheme, use the Configure IDLE dialog Highlighting tab. The marking of debugger breakpoint lines in the editor and diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index 926679e..570af7f 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -1030,6 +1030,12 @@ Terry Jan Reedy in :issue:`37892`.) We expect to backport these shell changes to a future 3.9 maintenance release. +Highlight the new :ref:`soft keywords <soft-keywords>` :keyword:`match`, +:keyword:`case <match>`, and :keyword:`_ <wildcard-patterns>` in +pattern-matching statements. However, this highlighting is not perfect +and will be incorrect in some rare cases, including some ``_``-s in +``case`` patterns. (Contributed by Tal Einat in bpo-44010.) + importlib.metadata ------------------ |