mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-104451 ASDoc template not working of a Vector object is met somewhere under it
This commit is contained in:
@@ -189,7 +189,7 @@ public class EnterHandler extends BaseEnterHandler {
|
||||
if (!commentText.endsWith(expectedCommentEnd)) return false;
|
||||
|
||||
final PsiFile containingFile = comment.getContainingFile();
|
||||
final Language language = comment.getParent().getLanguage();
|
||||
final Language language = containingFile.getLanguage();
|
||||
ParserDefinition parserDefinition = LanguageParserDefinitions.INSTANCE.forLanguage(language);
|
||||
if (parserDefinition == null) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user