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 (first) - Allow parts of code to be ignored by Language Server #441

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

Comments

@FALLAI-Denis
Copy link

Hi,

Extract from:

Description of the enhancement requested

We would like some parts of the (COBOL) source code not to be analyzed by the (COBOL) Language Server, this in order not to trigger errors or warnings on certain parts of the code, (which disable ZOE features, or pollutes the problems output):

  • intentionally unreachable code, ("watchdog" to ensure that we do not inadvertently exit in sequence from a performed block)
  • "exotic" code processed by a preprocessor before compilation, (see issue COBOL (first) - Allow use of "exotic" EXEC / END-EXEC block in source programs #439)
  • syntax not supported or poorly recognized by the Language Server, (in particular when using conditional compilation that cannot be resolved outside of a real compilation process, such as using a DEFINE compilation option)

For this we propose that the (COBOL) Language Server recognizes specific comments which would frame the code which should not be analyzed:

  • *>BEGIN-LS-IGNORE
  • *>END-LS-IGNORE

Thanks.

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