mirror of
https://github.com/davidhalter/parso.git
synced 2026-01-28 13:52:30 +08:00
iter_yield_expr should not work correctly.
This commit is contained in:
@@ -108,7 +108,7 @@ class PythonLeaf(PythonMixin, Leaf):
|
||||
# indent error leafs somehow? No idea how, though.
|
||||
previous_leaf = self.get_previous_leaf()
|
||||
if previous_leaf is not None and previous_leaf.type == 'error_leaf' \
|
||||
and previous_leaf.original_type == 'error_dedent':
|
||||
and previous_leaf.original_type in ('indent', 'error_dedent'):
|
||||
previous_leaf = previous_leaf.get_previous_leaf()
|
||||
|
||||
if previous_leaf is None:
|
||||
|
||||
Reference in New Issue
Block a user