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(" "):
|
||||
type_ = "delimiter"
|
||||
elif (
|
||||
token.isnumeric()
|
||||
or (token.startswith("{") and token.endswith("}"))
|
||||
or (token.startswith('"') and token.endswith('"'))
|
||||
or (token.startswith("'") and token.endswith("'"))
|
||||
token.isnumeric() or
|
||||
(token.startswith("{") and token.endswith("}")) or
|
||||
(token.startswith('"') and token.endswith('"')) or
|
||||
(token.startswith("'") and token.endswith("'"))
|
||||
):
|
||||
type_ = "literal"
|
||||
elif token.startswith("{"):
|
||||
|
Loading…
Reference in New Issue
Block a user