Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COBOL formatter - Possibility of not formatting certain parts of code #399

Open
FALLAI-Denis opened this issue Apr 10, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@FALLAI-Denis
Copy link

Description of the enhancement requested

Hi,

ZOE allows COBOL code to be formatted and formatting options can be specified in a zcodeformat file.

However, in our context, we do not want certain parts of the COBOL code to be reformatted: these parts are managed by tools that we have developed and which must find the COBOL code as it was implemented.

We would therefore like ZOE's COBOL formatting functionality to be able to exclude certain lines from its scope of intervention, according to two possibilities:

  • lines responding to a selection pattern expressed in the form of a regular expression, (allowing several regular expressions), in our case the presence of a character string pattern in columns 1 to 6, for example /^sq/
  • lines included in an area defined by a first line and a last line, again responding to a selection pattern expressed by regular expressions

Otherwise, or in addition, add an option to deactivate the formatting of the entire file, (Shift+Alt+F) and only authorize the formatting of the text previously selected, (Ctrl+K Ctrl+F).

Thanks.

@FALLAI-Denis FALLAI-Denis changed the title COBOL - Possibility of not formatting certain parts of code COBOL formater - Possibility of not formatting certain parts of code Apr 10, 2024
@FALLAI-Denis FALLAI-Denis changed the title COBOL formater - Possibility of not formatting certain parts of code COBOL formatter - Possibility of not formatting certain parts of code Apr 10, 2024
@phaumer phaumer added the enhancement New feature or request label Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants