IDEA-144220 Navigate > File doesn't handle line numbers on absolute paths

support windows absolute paths
This commit is contained in:
peter
2015-08-21 21:29:35 +02:00
parent 5c88562e97
commit 920b00464e
@@ -339,7 +339,11 @@ public class ChooseByNamePopup extends ChooseByNameBase implements ChooseByNameP
return newPopup;
}
private static final Pattern patternToDetectLinesAndColumns = Pattern.compile("([^:]+)(?::|@|,|)\\[?(\\d+)?(?:(?:\\D)(\\d+)?)?\\]?");
private static final Pattern patternToDetectLinesAndColumns = Pattern.compile("(" +
"(?:\\w:)?" + // absolute path start on Windows
"[^:]+" +
")" + // main part before line/column
"(?::|@|,|)\\[?(\\d+)?(?:(?:\\D)(\\d+)?)?\\]?");
public static final Pattern patternToDetectAnonymousClasses = Pattern.compile("([\\.\\w]+)((\\$[\\d]+)*(\\$)?)");
private static final Pattern patternToDetectMembers = Pattern.compile("(.+)(#)(.*)");