IBM / zopeneditor-about

IBM Z Open Editor: File issues here!
https://ibm.github.io/zopeneditor-about
Apache License 2.0
49 stars 20 forks source link

COBOL - Formatting - More options for DATA DIVISION #310

Open FALLAI-Denis opened 1 year ago

FALLAI-Denis commented 1 year ago

Description of the enhancement requested

Hi,

The COBOL formatting functionality is limited as far as the DATA DIVISION is concerned:

Experimental: Formatting COBOL source code Formatting COBOL code elements Quick Look: IDz COBOL Code Formatter

We would like to have more formatting options for "data-entry description" declarations.

It would also be necessary to be able to align certain information (keyword) on specific columns:

It would also be necessary to manage the spacing between the terms of a descriptive clause, in particular to remove superfluous spacing.

Below are the rules that we currently apply (by a tool for generating data description copybooks), and that we would like to be able to also manage by the reformatting functionality.

For the management of level numbers:

This can also result in a alignement calculation:

Note: we only use certain values of level numbers, (01, 02, 03, 05 which correspond to structures, translated into group zones, 10 which corresponds to elementary data or group zones in a structure, then from 1 to 1).

For the different parts of a "data entry description" declaration:

Samples, (from our copybook generator, compatible with IBM VisualAge Pacbase generator, deprecated):

image

image Note that some data type expressions for SQL type declarations are not correctly recognized by the textmate grammar.

image