support custom folding regions for Kotlin

#KT-5207 Fixed
This commit is contained in:
Dmitry Jemerov
2015-04-27 19:22:37 +02:00
parent cb553bc952
commit 3af20b5d45
3 changed files with 42 additions and 23 deletions
@@ -0,0 +1,18 @@
class Foo <fold text='{...}' expand='true'>{
<fold text='Methods' expand='true'>// <editor-fold desc="Methods">
fun foo() {}
fun bar() <fold text='{...}' expand='true'>{
}</fold>
// </editor-fold></fold>
fun xyzzy() <fold text='{...}' expand='true'>{
<fold text='Body' expand='true'>// <editor-fold desc="Body">
printn("Xyzzy")
printn("Xyzzy")
printn("Xyzzy")
// </editor-fold></fold>
}</fold>
}</fold>