From 8433f2c4da908999f64424c11ef67c91bf6d7af4 Mon Sep 17 00:00:00 2001 From: peter Date: Tue, 10 May 2011 12:59:32 +0200 Subject: [PATCH] capitals after asterisk should only match word starts --- platform/util/src/com/intellij/psi/codeStyle/NameUtil.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/util/src/com/intellij/psi/codeStyle/NameUtil.java b/platform/util/src/com/intellij/psi/codeStyle/NameUtil.java index 6e1d5c082166..0af1ceaa513d 100644 --- a/platform/util/src/com/intellij/psi/codeStyle/NameUtil.java +++ b/platform/util/src/com/intellij/psi/codeStyle/NameUtil.java @@ -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 ranges = matchName(name, patternIndex, next); if (ranges != null) { return ranges;