mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
doc: Remove backslashes in doctest grammar docs (#29346)
This commit is contained in:
parent
62a5dc13e9
commit
22860dbbc8
1 changed files with 3 additions and 3 deletions
|
|
@ -696,10 +696,10 @@ special Python comments following an example's source code:
|
||||||
|
|
||||||
.. productionlist:: doctest
|
.. productionlist:: doctest
|
||||||
directive: "#" "doctest:" `directive_options`
|
directive: "#" "doctest:" `directive_options`
|
||||||
directive_options: `directive_option` ("," `directive_option`)\*
|
directive_options: `directive_option` ("," `directive_option`)*
|
||||||
directive_option: `on_or_off` `directive_option_name`
|
directive_option: `on_or_off` `directive_option_name`
|
||||||
on_or_off: "+" \| "-"
|
on_or_off: "+" | "-"
|
||||||
directive_option_name: "DONT_ACCEPT_BLANKLINE" \| "NORMALIZE_WHITESPACE" \| ...
|
directive_option_name: "DONT_ACCEPT_BLANKLINE" | "NORMALIZE_WHITESPACE" | ...
|
||||||
|
|
||||||
Whitespace is not allowed between the ``+`` or ``-`` and the directive option
|
Whitespace is not allowed between the ``+`` or ``-`` and the directive option
|
||||||
name. The directive option name can be any of the option flag names explained
|
name. The directive option name can be any of the option flag names explained
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue