mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
highlight @ in annotations
This commit is contained in:
@@ -1709,7 +1709,8 @@ public class GroovyAnnotator extends GroovyElementVisitor implements Annotator {
|
||||
PsiElement parent = refElement.getParent();
|
||||
if (element instanceof PsiClass) {
|
||||
if (((PsiClass)element).isAnnotationType() && !(parent instanceof GrImportStatement)) {
|
||||
Annotation annotation = holder.createInfoAnnotation(refElement, null);
|
||||
final TextRange range = refElement.getTextRange();
|
||||
Annotation annotation = holder.createInfoAnnotation(new TextRange(range.getStartOffset() - 1, range.getEndOffset()), null);
|
||||
annotation.setTextAttributes(DefaultHighlighter.ANNOTATION);
|
||||
GroovyPsiElement context = result.getCurrentFileResolveContext();
|
||||
if (context instanceof GrImportStatement) {
|
||||
|
||||
Reference in New Issue
Block a user