mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-144220 Navigate > File doesn't handle line numbers on absolute paths
support windows absolute paths
This commit is contained in:
@@ -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("(.+)(#)(.*)");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user