mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-41762: Fix usage of productionlist markup in the doc (GH-22281)
Use an unique identifier for the different grammars documented using the Sphinx productionlist markup. productionlist markups of the same grammar, like "expressions" or "compound statements", use the same identifier "python-grammar".
This commit is contained in:
parent
27201cddf3
commit
8af239eacf
8 changed files with 70 additions and 69 deletions
|
@ -596,7 +596,7 @@ are always available. They are listed here in alphabetical order.
|
|||
input must conform to the following grammar after leading and trailing
|
||||
whitespace characters are removed:
|
||||
|
||||
.. productionlist::
|
||||
.. productionlist:: float
|
||||
sign: "+" | "-"
|
||||
infinity: "Infinity" | "inf"
|
||||
nan: "nan"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue