don't complete keywords after smart points (.@ , *., ?.)

This commit is contained in:
Maxim.Medvedev
2012-02-20 17:10:01 +04:00
parent 30f0ebfc64
commit e638075d14
@@ -75,7 +75,7 @@ public class GroovyCompletionData {
return;
}
if (!PlatformPatterns.psiElement().afterLeaf(".", ".&").accepts(position)) {
if (!PlatformPatterns.psiElement().afterLeaf(".", ".&", "@", "*.", "?.").accepts(position)) {
if (suggestPackage(position)) {
result.addElement(keyword(PsiKeyword.PACKAGE, TailType.INSERT_SPACE));
}