We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22cd381 commit a1aa6b8Copy full SHA for a1aa6b8
coverage/phystokens.py
@@ -57,10 +57,10 @@ def _phys_tokens(toks: TokenInfos) -> TokenInfos:
57
if last_ttext.endswith("\\"):
58
inject_backslash = False
59
elif ttype == token.STRING:
60
- if last_line.endswith(last_ttext + "\\\n"):
+ if last_line.endswith("\\\n") and last_line.rstrip(" \\\n").endswith(last_text):
61
# Deal with special cases like such code::
62
#
63
- # a = ["aaa",\
+ # a = ["aaa",\ # there may be zero or more blanks between "," and "\".
64
# "bbb \
65
# ccc"]
66
0 commit comments