[issue44084] Can't mark match, case, _ as keywords in docs

2021-05-09 Thread Tal Einat
Change by Tal Einat : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue44084] Can't mark match, case, _ as keywords in docs

2021-05-09 Thread Tal Einat
Tal Einat added the comment: Thanks Dominic, it seems that you're absolutely right! -- ___ Python tracker ___ ___ Python-bugs-list

[issue44084] Can't mark match, case, _ as keywords in docs

2021-05-09 Thread Dominic Davis-Foster
Dominic Davis-Foster added the comment: I'm not sure this is a Pygments or Sphinx bug. The documentation for the :keyword: role[1] says: This creates a link to a reference label with that name, if it exists. Looking at the documentation source for "Compound statements"[2] each section f

[issue44084] Can't mark match, case, _ as keywords in docs

2021-05-08 Thread Tal Einat
New submission from Tal Einat : 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