I really like this feature and Scintilla having both a COBOL lexer and code-folding. The main problem here is that these seem not to work together.
Every end-... should be the folding end from its ... pendant.
For example if/end-if evaluate/end-evaluate perform [...] until/end-perform.
The main difficulty is that a dot . counts as an end for all open foldings, taken something like
perform until 0 = 1
if 1 = 1
move a to b
perform b-sec *> no until in perform, therefore no folding here
perform b-sec. *> dirty way of programming - everything is closed here because of the dot
A first implementation could ignore the dot and only search for the end-..., maybe even ignore perform for folding if it's to hard to look for the unitl clause
Log in to post a comment.