mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix folding exception in haml
This commit is contained in:
@@ -32,7 +32,7 @@ public abstract class IndentationFoldingBuilder implements FoldingBuilder, DumbA
|
||||
private void collectDescriptors(@NotNull final ASTNode node, @NotNull final List<FoldingDescriptor> descriptors) {
|
||||
final ASTNode[] children = node.getChildren(myTokenSet);
|
||||
if (children.length > 0) {
|
||||
if (node.getTreeParent() !=null) {
|
||||
if (node.getTreeParent() !=null && node.getTextLength() > 0) {
|
||||
descriptors.add(new FoldingDescriptor(node, node.getTextRange()));
|
||||
}
|
||||
for (ASTNode child : children) {
|
||||
|
||||
Reference in New Issue
Block a user