[New-bugs-announce] [issue44084] Can't mark match, case, _ as keywords in docs

Tal Einat report at bugs.python.org
Sun May 9 02:49:40 EDT 2021


New submission from Tal Einat <taleinat+python at gmail.com>:

Beginning in Python 3.10, `match`, `case` and `_` are "soft keywords", i.e. they are considered keywords only in specific parts of the syntax.

However, they cannot be tagged with a :keyword:`...` role in our docs.

This appears to be due to not appearing in the list of keywords in the Python lexer in Pygments, which is used by Sphinx.

I've opened an issue on the Pygments repo about this:
https://github.com/pygments/pygments/issues/1797

----------
assignee: docs at python
components: Documentation
messages: 393301
nosy: docs at python, taleinat
priority: normal
severity: normal
status: open
title: Can't mark match, case, _ as keywords in docs
type: behavior
versions: Python 3.10, Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44084>
_______________________________________


More information about the New-bugs-announce mailing list