Skip to content

Commit

Permalink
Update version to 0.1.9; support fold of datum comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Saigut committed Jun 11, 2022
1 parent 38747fc commit 5275f59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/fold/SchemeFoldingBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public String getPlaceholderText(ASTNode node)
return ";...";
} else if (node.getElementType() == SchemeTokens.BLOCK_COMMENT) {
return "#|...|#";
} else if (node.getElementType() == SchemeTokens.DATUM_COMMENT) {
return "#;...";
} else {
return "...";
}
Expand Down Expand Up @@ -74,6 +76,7 @@ private void appendDescriptors(ASTNode node, List<FoldingDescriptor> descriptors
private boolean isFoldableNode(ASTNode node)
{
PsiElement element = node.getPsi();
return (element instanceof SchemeBodyOfForm) || (node.getElementType() == SchemeTokens.BLOCK_COMMENT);
return (element instanceof SchemeBodyOfForm)
|| SchemeTokens.COMMENTS.contains(node.getElementType());
}
}

0 comments on commit 5275f59

Please sign in to comment.