Fix a backslash issue

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

No files matched your search

+1 -1
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