mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
skip spaces after incomplete members only
This commit is contained in:
@@ -195,11 +195,15 @@ public class JavaPsiImplementationHelperImpl extends JavaPsiImplementationHelper
|
||||
if (anchor != null && anchor != aClass) {
|
||||
anchor = anchor.getNextSibling();
|
||||
while (anchor instanceof PsiJavaToken && (anchor.getText().equals(",") || anchor.getText().equals(";"))) {
|
||||
final boolean afterComma = anchor.getText().equals(",");
|
||||
anchor = anchor.getNextSibling();
|
||||
if (afterComma) {
|
||||
newAnchor = skipWhitespaces(aClass, anchor);
|
||||
if (newAnchor != null) return newAnchor;
|
||||
}
|
||||
}
|
||||
if (anchor != null) {
|
||||
newAnchor = skipWhitespaces(aClass, anchor);
|
||||
return newAnchor != null ? newAnchor : anchor;
|
||||
return anchor;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user