diff --git a/idea/src/META-INF/plugin.xml b/idea/src/META-INF/plugin.xml index dc494e83d1b..dd2f186c546 100644 --- a/idea/src/META-INF/plugin.xml +++ b/idea/src/META-INF/plugin.xml @@ -321,6 +321,7 @@ + ? { val node = e.getNode()!! diff --git a/idea/src/org/jetbrains/jet/plugin/editor/wordSelection/KotlinWordSelectionFilter.kt b/idea/src/org/jetbrains/jet/plugin/editor/wordSelection/KotlinWordSelectionFilter.kt new file mode 100644 index 00000000000..dd1779b745b --- /dev/null +++ b/idea/src/org/jetbrains/jet/plugin/editor/wordSelection/KotlinWordSelectionFilter.kt @@ -0,0 +1,24 @@ +/* + * Copyright 2010-2014 JetBrains s.r.o. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.jetbrains.jet.plugin.editor.wordSelection + +import com.intellij.openapi.util.Condition +import com.intellij.psi.PsiElement + +public class KotlinWordSelectionFilter : Condition{ + override fun value(e: PsiElement) = !KotlinListSelectioner.canSelect(e) +} \ No newline at end of file diff --git a/idea/testData/wordSelection/TypeArguments/2.kt b/idea/testData/wordSelection/TypeArguments/2.kt new file mode 100644 index 00000000000..97b3e533098 --- /dev/null +++ b/idea/testData/wordSelection/TypeArguments/2.kt @@ -0,0 +1,3 @@ +fun foo() { + foont, B>() +} diff --git a/idea/testData/wordSelection/TypeParameters/2.kt b/idea/testData/wordSelection/TypeParameters/2.kt new file mode 100644 index 00000000000..a2cb2140ada --- /dev/null +++ b/idea/testData/wordSelection/TypeParameters/2.kt @@ -0,0 +1,3 @@ +fun B> foo() { +} + \ No newline at end of file diff --git a/idea/testData/wordSelection/ValueArguments/2.kt b/idea/testData/wordSelection/ValueArguments/2.kt new file mode 100644 index 00000000000..65e99a4fe13 --- /dev/null +++ b/idea/testData/wordSelection/ValueArguments/2.kt @@ -0,0 +1,3 @@ +fun foo() { + foo(1, 2) +} diff --git a/idea/testData/wordSelection/ValueParameters/2.kt b/idea/testData/wordSelection/ValueParameters/2.kt new file mode 100644 index 00000000000..760f62084c7 --- /dev/null +++ b/idea/testData/wordSelection/ValueParameters/2.kt @@ -0,0 +1,3 @@ +fun foo(a : Array, b : Int) { +} + \ No newline at end of file