mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
add a comment about default not being a official keyword
This commit is contained in:
parent
6ae1c601b9
commit
864dd0b610
@ -899,6 +899,8 @@ def _token_type(token: str, location: str = None) -> str:
|
||||
)
|
||||
type_ = "literal"
|
||||
elif token in ("optional", "default"):
|
||||
# default is not a official keyword (yet) but supported by the
|
||||
# reference implementation (numpydoc) and widely used
|
||||
type_ = "control"
|
||||
elif _xref_regex.match(token):
|
||||
type_ = "reference"
|
||||
|
Loading…
Reference in New Issue
Block a user