mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
complete java class keywords after top-level annotation
regression after IDEA-CR-25484
This commit is contained in:
@@ -592,6 +592,10 @@ public class JavaKeywordCompletion {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (psiElement().withParents(PsiErrorElement.class, PsiFile.class).accepts(position)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return isEndOfBlock(position);
|
||||
}
|
||||
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
@Deprecated() <caret>
|
||||
+1
@@ -55,6 +55,7 @@ public class KeywordCompletionTest extends LightCompletionTestCase {
|
||||
public void testClassScope4() { doTest(10, CLASS_SCOPE_KEYWORDS_2); }
|
||||
public void testInterfaceScope() { setLanguageLevel(LanguageLevel.JDK_1_8); doTest(8, INTERFACE_SCOPE_KEYWORDS); }
|
||||
public void testAfterAnnotations() { doTest(6, "public", "final", "class", "interface", "abstract", "enum", null); }
|
||||
public void testAfterAnnotationsWithParams() { doTest(6, "public", "final", "class", "interface", "abstract", "enum", null); }
|
||||
public void testExtends1() { doTest(2, "extends", "implements", null); }
|
||||
public void testExtends2() { doTest(1, "extends", "implements", "AAA", "BBB", "instanceof"); }
|
||||
public void testExtends3() { doTest(2, "extends", "implements", "AAA", "BBB", "CCC", "instanceof"); }
|
||||
|
||||
Reference in New Issue
Block a user