COBOL - highlighting if/end-if evaluate/end-evaluate pairs #270
FALLAI-Denis
started this conversation in
Ideas
Replies: 1 comment
-
Brackets options can be declared in the settings.json, user or workspace file:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Playing around with the brackets settings in Z Open Editor's
cobol-language-configuration.json
file, I highlighted theif
/end-if
andevaluate
/end-evaluate
statement pairs.With a bit of parameterization in the settings.json:
This works even if the existence of a comment or a line number in columns 1 to 6 slightly disturbs the display of the connecting line between the instruction and its terminator.
brackets
are not case sensitive... hooray!This also assumes that terminators are systematically implemented (no use of COBOL "." to terminate a statement).
Not all terminators are eligible, in particular
end-perform
because there may beperform paragraph/section
that interfere.This evolution could be integrated into the "factory" configuration of Z Open Editor, but I'm not sure that everyone wants it.
Would there be a way to override the
cobol-language-configuration.json
file delivered with Z Open Editor to be able to implement this operation only on site and not in the standard delivery of Z Open Editor?Beta Was this translation helpful? Give feedback.
All reactions