summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-05-19 09:44:14 (GMT)
committerGitHub <noreply@github.com>2021-05-19 09:44:14 (GMT)
commit3357604db966693b752cbd9ffc3ad0f40b970d31 (patch)
tree9bb73adade0c8cabb9e9dacb98dbf206e431ca7d /Doc/library
parent5f2afff1ddbf11c8dfa9ddc98fb7a2f2d86eabde (diff)
downloadcpython-3357604db966693b752cbd9ffc3ad0f40b970d31.zip
cpython-3357604db966693b752cbd9ffc3ad0f40b970d31.tar.gz
cpython-3357604db966693b752cbd9ffc3ad0f40b970d31.tar.bz2
bpo-44010: IDLE: colorize pattern-matching soft keywords (GH-25851)
(cherry picked from commit 60d343a81679ea90ae0e08fadcd132c16906a51a) Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
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