Files
openide/python/testData/surround/CustomFoldingRegionSingleStatementInFile_after.py
Mikhail Golubev 00f379ed9d PY-11357 Make automatic surrounding with custom folding comments more robust
* Searching of first parental PSI elements before/after new line
correctly stops at the start/end of file. As result it's possible now
to surround element at the first/last line in the file.
Also corresponding traversal does not try to climb above PSI file.
* Even single character can be selected in first place.
* In languages that uses indentation to delimit blocks (like Python)
several consequent sibling statements can be surrounded even if the last
of them is at the end of its parent.
2014-11-07 14:39:31 +03:00

4 lines
65 B
Python

# <editor-fold desc="Description">
print('foo')
# </editor-fold>