mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
back reference is two words
This commit is contained in:
@@ -124,14 +124,14 @@ public final class RegExpAnnotator extends RegExpElementVisitor implements Annot
|
||||
public void visitRegExpBackref(final RegExpBackref backref) {
|
||||
final RegExpGroup group = backref.resolve();
|
||||
if (group == null) {
|
||||
final Annotation a = myHolder.createErrorAnnotation(backref, "Unresolved backreference");
|
||||
final Annotation a = myHolder.createErrorAnnotation(backref, "Unresolved back reference");
|
||||
if (a != null) {
|
||||
// IDEA-9381
|
||||
a.setHighlightType(ProblemHighlightType.LIKE_UNKNOWN_SYMBOL);
|
||||
}
|
||||
}
|
||||
else if (PsiTreeUtil.isAncestor(group, backref, true)) {
|
||||
myHolder.createWarningAnnotation(backref, "Backreference is nested into the capturing group it refers to");
|
||||
myHolder.createWarningAnnotation(backref, "Back reference is nested into the capturing group it refers to");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -173,7 +173,7 @@ public final class RegExpAnnotator extends RegExpElementVisitor implements Annot
|
||||
*/
|
||||
final RegExpGroup group = groupRef.resolve();
|
||||
if (group == null) {
|
||||
final Annotation a = myHolder.createErrorAnnotation(groupRef, "Unresolved backreference");
|
||||
final Annotation a = myHolder.createErrorAnnotation(groupRef, "Unresolved back reference");
|
||||
if (a != null) {
|
||||
// IDEA-9381
|
||||
a.setHighlightType(ProblemHighlightType.LIKE_UNKNOWN_SYMBOL);
|
||||
|
||||
Reference in New Issue
Block a user