Fix a backslash issue

This commit is contained in:
Dave Halter
2020-03-29 23:59:53 +02:00
parent 0d9886c22a
commit d674bc9895
2 changed files with 17 additions and 1 deletions

View File

@@ -517,7 +517,7 @@ def tokenize_lines(lines, version_info, start_pos=(1, 0)):
start = match.end()
spos = (lnum, start)
if new_line and initial not in '\r\n\\#':
if new_line and initial not in '\r\n#' and (initial != '\\' or pseudomatch is None):
new_line = False
if paren_level == 0 and not fstring_stack:
i = 0