Files
openide/python/testData/copyPaste/AmbiguousParentBlockLargestIndent.after.py
Mikhail Golubev 9a6cf9f077 PY-19064 PY-18522 Detection of ambiguous parent block on text pasting
If pasted fragment can belong to several statements lists depending on
its indentation we let user to choose by using indentation before the
caret. However it's not allowed to insert new text so that it breaks
existing block structure, i.e. we constrain minimum and maximum
possible indentation.
2016-04-05 17:04:18 +03:00

8 lines
113 B
Python

def f():
if True:
try:
pass
finally:
pass
x = 42
pass