New submission from Tal Einat <taleinat+pyt...@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@python components: Documentation messages: 393301 nosy: docs@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 <rep...@bugs.python.org> <https://bugs.python.org/issue44084> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com