be prepared to middle matching with one char prefix

This commit is contained in:
peter
2012-08-28 16:24:51 +02:00
parent b6f42f0385
commit f412b09ef8
24 changed files with 53 additions and 100 deletions
@@ -1,20 +1,5 @@
/*
* Copyright 2000-2012 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.
*/
public class A{
public void method(){
boolean x = this i<caret>
boolean x = this ins<caret>
}
}
@@ -1,18 +1,3 @@
/*
* Copyright 2000-2012 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.
*/
public class A{
public void method(){
boolean x = this instanceof <caret>
@@ -1,21 +1,6 @@
/*
* Copyright 2000-2012 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.
*/
public class A{
public void method(){
String str = "";
boolean x = str i<caret>
boolean x = str ins<caret>
}
}
@@ -1,18 +1,3 @@
/*
* Copyright 2000-2012 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.
*/
public class A{
public void method(){
String str = "";
@@ -1,3 +1,3 @@
class Foo {
java.l<caret>
java.la<caret>
}
@@ -3,7 +3,7 @@ public class Bar {
{
int a = 1;
Object java;
java.e<caret>
java.eq<caret>
a = 2;
}
@@ -1,6 +1,6 @@
public class Foo {
{
String s = n<caret>
String s = nu<caret>
}
}
@@ -4,6 +4,6 @@ class A<T>{
void put(String str);
{
put(new A<String>().g<caret>)
put(new A<String>().ge<caret>)
}
}
@@ -4,6 +4,6 @@ class A<T>{
void put(T str);
{
new A<String>().put(new A<String>().g<caret>)
new A<String>().put(new A<String>().ge<caret>)
}
}
@@ -4,6 +4,6 @@ class A{
}
{
String str = new Map<Object, String>().g<caret>
String str = new Map<Object, String>().ge<caret>
}
}
@@ -1,6 +1,6 @@
class Goo {
{
boolean[] ls;
boolean a = ls[<caret>];
boolean[] los;
boolean a = los[<caret>];
}
}
@@ -1,6 +1,6 @@
class Goo {
{
boolean[] ls;
boolean a = l<caret>
boolean[] los;
boolean a = los<caret>
}
}
@@ -3,6 +3,6 @@ class Goo {
{
boolean a = this.a<caret>
boolean a = this.ar<caret>
}
}
@@ -4,7 +4,7 @@ class Foo {
{
Foo[] foos;
Collection<Foo> c = f<caret>
Collection<Foo> c = foo<caret>
}
}
@@ -6,7 +6,7 @@ class Foo implements Bar {
{
Foo[] foos;
Collection<? extends Bar> c = f<caret>
Collection<? extends Bar> c = foo<caret>
}
}
@@ -1,5 +1,5 @@
class Goo {
void foo(boolean... ls) {
boolean a = ls[<caret>];
void foo(boolean... los) {
boolean a = los[<caret>];
}
}
@@ -1,5 +1,5 @@
class Goo {
void foo(boolean... ls) {
boolean a = l<caret>
void foo(boolean... los) {
boolean a = los<caret>
}
}
@@ -5,6 +5,6 @@ class A{
{
int aaa = 0;
foo(a<caret>
foo(aa<caret>
}
}