capitals after asterisk should only match word starts

This commit is contained in:
peter
2011-05-10 13:00:32 +02:00
parent 3dccdea9c6
commit 8433f2c4da
@@ -572,6 +572,7 @@ public class NameUtil {
}
String nextChar = String.valueOf(myPattern[patternIndex]);
boolean wordStart = isWordStart(myPattern[patternIndex]);
int fromIndex = nameIndex;
while (true) {
@@ -579,6 +580,11 @@ public class NameUtil {
if (next < 0) {
break;
}
if (wordStart && next > 0 && next != nextWord(name, next - 1)) {
fromIndex = next + 1;
continue;
}
FList<TextRange> ranges = matchName(name, patternIndex, next);
if (ranges != null) {
return ranges;