code by overriding the isLeftCurly(Token) and isRightCurly(Token) methods,
but I also had to add a way to bypass the "do curly braces denote code blocks"
check in the getFolds() method, e.g.,
java code:
public List getFolds(RSyntaxTextArea textArea) {
List folds = new ArrayList();
//RSyntaxDocument doc = (RSyntaxDocument)textArea.getDocument();
//if (doc.getCurlyBracesDenoteCodeBlocks()) {
if (curlyBracesDenoteCodeBlocks(textArea)) {
...
}
}
public boolean curlyBracesDenoteCodeBlocks(RSyntaxTextArea textArea) {
RSyntaxDocument doc = (RSyntaxDocument)textArea.getDocument();
return doc.getCurlyBracesDenoteCodeBlocks();
}
Would it be possible for you to add such an override method to
CurlyFoldParser?
This is a very useful library, thanks for making it available.
