KT-3949 Extend selection in case of comment before several statements

#KT-3949 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-12-15 20:24:47 -07:00
parent 3059a46ca7
commit 11a72632bc
9 changed files with 67 additions and 3 deletions
@@ -0,0 +1,9 @@
fun test() {
x()
// <caret>comment for several lines
foo()
bar()
y()
}
@@ -0,0 +1,9 @@
fun test() {
x()
// <selection><caret>comment</selection> for several lines
foo()
bar()
y()
}
@@ -0,0 +1,9 @@
fun test() {
x()
// <selection><caret>comment for several lines</selection>
foo()
bar()
y()
}
@@ -0,0 +1,9 @@
fun test() {
x()
<selection>// <caret>comment for several lines</selection>
foo()
bar()
y()
}
@@ -0,0 +1,9 @@
fun test() {
x()
<selection> // <caret>comment for several lines
</selection> foo()
bar()
y()
}
@@ -0,0 +1,9 @@
fun test() {
x()
<selection> // <caret>comment for several lines
foo()
bar()
</selection>
y()
}
@@ -0,0 +1,9 @@
fun test() {
<selection> x()
// <caret>comment for several lines
foo()
bar()
y()
</selection>}