mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-61031 Cannot collapse comments anymore
This commit is contained in:
+1
-10
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user