diff options
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 ------------------ |