mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-07 13:24:39 +08:00
Starting to refactor the normalizer to make sure that comments are also checked for indentation.
Using a linked list now for the indentation stack.
This commit is contained in:
@@ -68,7 +68,6 @@ def split_prefix(leaf, start_pos):
|
||||
if not value:
|
||||
break
|
||||
type_ = _types[value[0]]
|
||||
print(repr(spacing), repr(value), column)
|
||||
yield PrefixPart(
|
||||
leaf, type_, value, spacing,
|
||||
start_pos=(line, column + start + len(spacing))
|
||||
@@ -79,7 +78,6 @@ def split_prefix(leaf, start_pos):
|
||||
line += 1
|
||||
column = -start
|
||||
|
||||
print('x', repr(value), repr(spacing))
|
||||
if value:
|
||||
spacing = ''
|
||||
yield PrefixPart(
|
||||
|
||||
Reference in New Issue
Block a user