-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Using begin/end/nested and separator #48
Comments
Here a possible configuration (It's more complex):
There are several changes:
What do you think? Should it match what you are looking for to do? |
Hi @daiyam Thank you once again for taking my requests into account. I do not understand if it is an evolution proposal or if it is an already operational solution. As for the complexity of the implementation of the folding rules, it does'nt matter as long as the extension remains efficient. I have several use cases that needs Note: I have another problem that I have not yet diagnosed and which concerns the use of the same end expression, for different begin expressions. I applied the proposal as formulated, but it does not add the folding on the "PROC / PEND" group.
|
If there should be any breaking changes from previous versions, there may be other changes to consider:
|
|
For the languages support extension for COBOL, JCL (but also REXX, HLASM and PL/I) , we use "IBM Z Open Editor". We also tested the extension "COBOL Language Support" from CA Broadcom, which is in fact an evolution of that of bitlang. The IBM extension is richer than the other offers. For us, the "IBM Z Open Editor" extension is also more natural because it corresponds to our usual working context (IBM z/OS mainframe). It also includes other facilities that do not exist in the other extensions. |
Regarding the evolution proposal, that suits me. |
Hi Denis, here the lastest update: explicit-folding-0.13.1.vsix I've used the following configuration:
The rule |
Hi @daiyam Once again thank you very much for considering my requests. I'm looking at these new developments and getting back to you as soon as possible. |
Hi @daiyam I adapted my rules to the new syntax and made some tests: everything seems OK to me. In the future I may have other suggestions to make, but for now we'll take a break. Thank you again for all your efforts, your involvement and your responsiveness. |
Great! I have to improve the documentation then I will officially release the new version. Regarding the child extension, I should be able to do it by requiring the current extension and by passing the predefined configuration for the language. If you have good configs, don't hesitate to share them into the discussions. |
The new version has been published. I've added the rule
|
Hi @daiyam Begin/While is something I need for some folding cases, but in these cases "while" must be evaluated from the first line, (the "begin" line). These cases concerns line with continuation character, (the last signifiant character of the line). Sample: //LABEL DD BLA,BLA,BLA, Foldind region "begin" with line containing "DD" word, and extend "while" a comma is present at last signifiant position of the line. Other sample: //LABEL DD BLA,BLA,BLA "LABEL" line does'nt have continuation comma : no folding region. "NOT" line has a continuation character but is not continuation of "LABEL" line. So, there is two cases to consider:
Perhaps this can be handle with a boolean indicator associated with "while"/"whileregex" ? Or use of "while" and "until" expressions:
Use case for "until": in COBOL continuation of string value is associated with a dash character in column at position 7 123456 display "Helloxxxxxx.... |
The rule begin/continuation should be able to do it.
The rule begin/while should do it.
A If you give me some examples, I should be able to test more precisely. |
Hi @FALLAI-Denis, I've made a change which is the comment block with
I've add the property |
Hi @FALLAI-Denis, Can you tell me the expected foldings for
|
Regarding folding on DD statements, I'm trying to implement the following rule:
In the example above, the regions to fold with respect to the presence of
Lines 11 and 16 are not part of the folding. On the other hand, if comment lines ( The generic form of a folding region for a DD declaration is:
|
Yep, I can't make a working rule for those conditions... yet. |
Can you try:
It's a bit hacky but it seems to work... |
+1 |
Describe the issue
I want to use a declaration based on a
beginRegex
/endRegex
with option"nested": true
, and at the same time a hierarchical declaration ofseparator
.The
"nested": true
option seems incompatible with the use ofseparator
: folding is not active even if the begin and end expressions are correctly identified.With
"nested": false
there is no conflict withseparator
, (comment bloc in code example).To reproduce
Code Example
Settings
Expected behavior
We should have a folding starting at
// MYPROC PROC
and ending at// MYPROC PEND
.Screenshots
Additional context
If I remove the content between
// MYPROC PROC
and// MYPROC PEND
then the folding is done well:The text was updated successfully, but these errors were encountered: