KT-5292 Expand selection should have kdoc + method as a stop point

KT-3947 Extend selection works badly with comment

 #KT-5292 Fixed
 #KT-3947 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-12-07 21:07:26 -07:00
parent acdb750c91
commit 46906fd89c
36 changed files with 327 additions and 29 deletions
@@ -0,0 +1,8 @@
package p
class C{
// This is a <caret>val
val v = 1
fun foo(){}
}
@@ -0,0 +1,8 @@
package p
class C{
// This is a <selection><caret>val</selection>
val v = 1
fun foo(){}
}
@@ -0,0 +1,8 @@
package p
class C{
// <selection>This is a <caret>val</selection>
val v = 1
fun foo(){}
}
@@ -0,0 +1,8 @@
package p
class C{
<selection>// This is a <caret>val</selection>
val v = 1
fun foo(){}
}
@@ -0,0 +1,8 @@
package p
class C{
<selection> // This is a <caret>val
</selection> val v = 1
fun foo(){}
}
@@ -0,0 +1,8 @@
package p
class C{
<selection> // This is a <caret>val
val v = 1
</selection>
fun foo(){}
}