Including pgen2 tests from the cpython repo.
This commit is contained in:
1 parent
507ddfa4b0
commit
2a691eefff
3 files changed
+270
-1
No files matched your search
@@ -219,6 +219,10 @@ def generate_tokens(readline):
|
||||
if new_line and initial not in '\r\n#':
|
||||
new_line = False
|
||||
if paren_level == 0:
|
||||
i = 0
|
||||
while line[i] == '\f':
|
||||
i += 1
|
||||
start -= 1
|
||||
if start > indents[-1]:
|
||||
yield INDENT, '', spos, ''
|
||||
indents.append(start)
|
||||
|
||||
Reference in new issue
Block a user