IDEA-97100 (annotation highlighting in default values)

This commit is contained in:
Roman Shevchenko
2012-12-11 13:37:29 +01:00
parent 3260799f4f
commit 36cc6d348a
2 changed files with 6 additions and 1 deletions
@@ -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;
}