summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorTal Einat <532281+taleinat@users.noreply.github.com>2021-05-19 09:18:10 (GMT)
committerGitHub <noreply@github.com>2021-05-19 09:18:10 (GMT)
commit60d343a81679ea90ae0e08fadcd132c16906a51a (patch)
tree1d9c2f8b8236cea70401485bc972d389b9617993 /Doc/library
parentd798acc8733b605f7fc9c3c1a85cd14ee2a56add (diff)
downloadcpython-60d343a81679ea90ae0e08fadcd132c16906a51a.zip
cpython-60d343a81679ea90ae0e08fadcd132c16906a51a.tar.gz
cpython-60d343a81679ea90ae0e08fadcd132c16906a51a.tar.bz2
bpo-44010: IDLE: colorize pattern-matching soft keywords (GH-25851)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/idle.rst6
1 files changed, 6 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