move the binary operator "or" to before the newline

This commit is contained in:
Keewis 2020-06-07 19:01:29 +02:00
parent 4d0b4f2931
commit fedceb25ff

View File

@ -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("{"):