When folding certain code (it seems to be related to braces in comments), the code sometimes fails to fold correctly.
The test code:
class Myclass {
myfunction1() {
//(){
//}
}
// this should be folded
myfunction2() {
}
};
In Code::Blocks:


In Scite:


This seems like a minor issue with the reduced code above, but in a production codebase I'm working on this affects a large header, making it very diffucult to navigate. Additionally, I've had an issue that's probably related where, after folding and unfolding, some lines of code disappear until the file is closed and reopened. Obviously this can cause quite serious programming errors. Unfortunately I haven't been able to reliably replicate that one, although it did once happen with a variant of the code above.
That code didn't paste correctly; it should be:
Explicit fold points are a feature that you can disable:
http://www.scintilla.org/SciTEDoc.html#property-fold.comment
This is actually not a bug but a feature :)
The C++ lexer has support for explicit fold points, which default to
//{(open) and//}(close).This is controlled by the
fold.commentand thefold.cpp.comment.explicitlexer properties (the latter defaults to enabled when the former is). You can then disable this by settingfold.cpp.comment.explicitto0, or by changing thefold.cpp.explicit.startandfold.cpp.explicit.endproperties.If there are any reproducible cases of permanently disappearing text in SciTE then that would be worth fixing.