mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
move the binary operator "or" to before the newline
This commit is contained in:
parent
4d0b4f2931
commit
fedceb25ff
@ -858,10 +858,10 @@ def _token_type(token):
|
|||||||
if token.startswith(" ") or token.endswith(" "):
|
if token.startswith(" ") or token.endswith(" "):
|
||||||
type_ = "delimiter"
|
type_ = "delimiter"
|
||||||
elif (
|
elif (
|
||||||
token.isnumeric()
|
token.isnumeric() or
|
||||||
or (token.startswith("{") and token.endswith("}"))
|
(token.startswith("{") and token.endswith("}")) or
|
||||||
or (token.startswith('"') and token.endswith('"'))
|
(token.startswith('"') and token.endswith('"')) or
|
||||||
or (token.startswith("'") and token.endswith("'"))
|
(token.startswith("'") and token.endswith("'"))
|
||||||
):
|
):
|
||||||
type_ = "literal"
|
type_ = "literal"
|
||||||
elif token.startswith("{"):
|
elif token.startswith("{"):
|
||||||
|
Loading…
Reference in New Issue
Block a user