#727 Implement Code folding for COBOL

Won't_Implement
open
Scintilla (358)
3
2014-09-02
2010-10-05
No

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
else
evaluate b
when 1
perform b-sec *> no until in perform, therefore no folding here
perform c-sec
when 2
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

Discussion

  • Neil Hodgson

    Neil Hodgson - 2010-10-05
    • assigned_to: nobody --> nyamatongwe
    • priority: 5 --> 3
    • milestone: --> Won't_Implement
    • labels: --> Scintilla
     
  • Neil Hodgson

    Neil Hodgson - 2010-10-05

    Language-specific issues are handled by those interested in the particular language.

    I will not be working on this myself.

     
  • Simon Sobisch

    Simon Sobisch - 2014-09-02

    Reanimating this FR: Please tell me where to implement code folding for COBOL and give a sample how implementation is done (maybe the #if/#else/#endif sample) and I'll try to come up with a patch.

    Simon

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks