Merge pull request #657 from JetBrains/rr/yole/kt5207

support custom folding regions for Kotlin
This commit is contained in:
asedunov
2015-04-28 15:46:24 +03:00
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>