Extend Selection: whole literal with braces is selected after parameters (KT-13420)

#KT-13420 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-04-04 07:12:43 +03:00
committed by Nikolay Krasko
parent 05269cea2f
commit 5aa0b7d2aa
6 changed files with 26 additions and 6 deletions
@@ -0,0 +1,5 @@
fun foo(f: (Int) -> Int) {}
fun test() {
foo { <caret>it -> it + 1 }
}
@@ -0,0 +1,5 @@
fun foo(f: (Int) -> Int) {}
fun test() {
foo { <caret><selection>it</selection> -> it + 1 }
}
@@ -0,0 +1,5 @@
fun foo(f: (Int) -> Int) {}
fun test() {
foo { <caret><selection>it -> it + 1</selection> }
}
@@ -0,0 +1,5 @@
fun foo(f: (Int) -> Int) {}
fun test() {
foo <selection>{ <caret>it -> it + 1 }</selection>
}