These functions don't seem to work quite right for COBOL code. The following examples and comments should illustrate what I mean.
Original code.
    01 ::INST::-COLUMN-TABLE.
      05 ::INST::-COLUMN OCCURS 172 TIMES.
        10 ::INST::-COL-VALUE     PIC X(50).
        10 ::INST::-COL-VALUE-1  REDEFINES ::INST::-COL-VALUE.
          15 ::INST::-COL-VAL-TXT  PIC X(50).
After Comment Lines, the comment character is in column 7 as specified in the extension options, and the commented code is not shifted to the right, which is good.
    01 ::INST::-COLUMN-TABLE.
      05 ::INST::-COLUMN OCCURS 172 TIMES.
        10 ::INST::-COL-VALUE     PIC X(50).
   *    10 ::INST::-COL-VALUE-1  REDEFINES ::INST::-COL-VALUE.
   *      15 ::INST::-COL-VAL-TXT  PIC X(50).
After Uncomment Lines, the comment character is removed from column 7, but the commented code has been shifted left one character, which is bad.
    01 ::INST::-COLUMN-TABLE.
      05 ::INST::-COLUMN OCCURS 172 TIMES.
        10 ::INST::-COL-VALUE     PIC X(50).
       10 ::INST::-COL-VALUE-1  REDEFINES ::INST::-COL-VALUE.
         15 ::INST::-COL-VAL-TXT  PIC X(50).      15Â
After Comment Block, the code is surrounded as specified by the extension options, but there is no provision for honoring the correct comment column. Also the code as been shifted right by two characters resulting in truncation at column 72 (according to extension options). (I do not use right-edge characters in my comment block settings.)
    01 ::INST::-COLUMN-TABLE.
      05 ::INST::-COLUMN OCCURS 172 TIMES.
        10 ::INST::-COL-VALUE     PIC X(50).
*********************************************************************
*Â Â Â Â Â Â Â Â 10Â ::INST::-COL-VALUE-1Â Â REDEFINES ::INST::-COL-
*Â Â Â Â Â Â Â Â Â Â 15Â ::INST::-COL-VAL-TXTÂ Â PIC X(50).
*********************************************************************
The Comment Lines feature needs to be fixed. I think this was part of the 12.0.2 enhancements, but it just isn't functional within the cobol.e environment.
The Comment Block feature is less important to me, but it would be nice if it worked. It basically just needs to honor the comment-start column (or have a separate setting), not shift the code, and truncate the right edge box characters if they extend past the truncation position.
Thanks