mirror of
https://github.com/davidhalter/parso.git
synced 2026-11-01 09:16:21 +08:00
Fix diff parser: error dedents in between nodes should be ignored for now when copying
This commit is contained in:
1 parent
197391dc53
commit
f3015efb2d
2 files changed
+27
No files matched your search
@@ -617,6 +617,8 @@ class _NodesTree(object):
|
||||
# Endmarkers just distort all the checks below. Remove them.
|
||||
break
|
||||
|
||||
if node.type == 'error_leaf' and node.token_type == 'ERROR_DEDENT':
|
||||
break
|
||||
# TODO this check might take a bit of time for large files. We
|
||||
# might want to change this to do more intelligent guessing or
|
||||
# binary search.
|
||||
|
||||
Reference in new issue
Block a user