Files
openide/python/testData/folding/blocksFolding.py
Pavel Karateev 85c6eee402 PY-75714 Fold single line match case clauses
Merge-request: IJ-MR-144163
Merged-by: Pavel Karateev <Pavel.Karateev@jetbrains.com>

GitOrigin-RevId: 352d1111988371b6edd9fa1af71b345dbb7aee38
2024-10-02 15:01:14 +00:00

51 lines
878 B
Python

if True:<fold text='...'>
pass</fold>
else:<fold text='...'>
pass</fold>
if True:<fold text='...'>
pass
pass</fold>
elif True:<fold text='...'>
pass
pass</fold>
else:<fold text='...'>
pass
pass</fold>
x = []
for i in x:<fold text='...'>
pass</fold>
for i in x:<fold text='...'>
pass
pass</fold>
while True:<fold text='...'>
pass
pass</fold>
f = open('1.txt')
ints = []
try:<fold text='...'>
for line in f:<fold text='...'>
ints.append(int(line))
ints.append(int(line))</fold></fold>
except ValueError:<fold text='...'>
print('')
print('')
print('')
print('')
print('')</fold>
except Exception:<fold text='...'>
print('')</fold>
else:<fold text='...'>
print('')
print('')
print('')
print('')</fold>
finally:<fold text='...'>
f.close()
print('')</fold>