IDEA-61031 Cannot collapse comments anymore

This commit is contained in:
Maxim Medvedev
2010-11-17 17:37:49 +03:00
parent f791110eea
commit b3a416b488
@@ -169,16 +169,7 @@ public class GroovyFoldingBuilder implements FoldingBuilder, GroovyElementTypes,
}
private static boolean isWellEndedComment(PsiElement element) {
if (element instanceof PsiComment) {
PsiComment comment = (PsiComment)element;
ASTNode node = comment.getNode();
if (node != null &&
node.getElementType() == mML_COMMENT &&
node.getText().endsWith("*/")) {
return true;
}
}
return false;
return element.getText().endsWith("*/");
}
private static boolean isWellEndedString(PsiElement element) {