mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-97100 (annotation highlighting in default values)
This commit is contained in:
+2
-1
@@ -256,7 +256,8 @@ public class AnnotationsHighlightUtil {
|
||||
}
|
||||
}),
|
||||
psiElement().withParent(PsiNameValuePair.class),
|
||||
psiElement().withParents(PsiArrayInitializerMemberValue.class, PsiNameValuePair.class)
|
||||
psiElement().withParents(PsiArrayInitializerMemberValue.class, PsiNameValuePair.class),
|
||||
psiElement().withParent(PsiAnnotationMethod.class).afterLeaf(PsiKeyword.DEFAULT)
|
||||
);
|
||||
|
||||
@Nullable
|
||||
|
||||
@@ -24,3 +24,7 @@ enum E {
|
||||
interface I {
|
||||
@<error descr="Duplicate annotation">Anno</error> public @<error descr="Duplicate annotation">Anno</error> Collection<<error descr="Annotations are not allowed here">@Anno</error> String> method(@<error descr="Duplicate annotation">Anno</error> @<error descr="Duplicate annotation">Anno</error> Object o);
|
||||
}
|
||||
|
||||
@interface Caller {
|
||||
Anno anno() default @Anno;
|
||||
}
|
||||
Reference in New Issue
Block a user