All is symbol is not have symbol fixed #28
This commit is contained in:
@@ -37,7 +37,7 @@ public class Prev {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final Pattern SYMBOL_PATTERN = Pattern.compile("[" +
|
private static final Pattern SYMBOL_PATTERN = Pattern.compile("[^" +
|
||||||
":-@" +
|
":-@" +
|
||||||
"\\[-`" +
|
"\\[-`" +
|
||||||
"{-~" +
|
"{-~" +
|
||||||
@@ -47,9 +47,8 @@ public class Prev {
|
|||||||
private static PsiElement refClassParent(@NotNull PsiElement element,
|
private static PsiElement refClassParent(@NotNull PsiElement element,
|
||||||
@NotNull Class<? extends PsiElement> refClass) {
|
@NotNull Class<? extends PsiElement> refClass) {
|
||||||
String text = element.getText();
|
String text = element.getText();
|
||||||
if (SYMBOL_PATTERN.matcher(text).find()) {
|
if (!SYMBOL_PATTERN.matcher(text).find()) {
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
}
|
}
|
||||||
PsiElement parent = element.getParent();
|
PsiElement parent = element.getParent();
|
||||||
if (parent == null) {
|
if (parent == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user