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:
Victor Stinner 2020-09-18 09:10:15 +02:00 committed by GitHub
parent 27201cddf3
commit 8af239eacf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 70 additions and 69 deletions

View file

@ -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"