I am about current folding for Fortran.
For example, for the code
if (a > b) then
print *, 'Hi'
else
print *, 'Hello'
endif'
the current implementation of the folding makes so, that after folding 'if' statement, the code until 'endif' is hidden, like
if (a > b) then
----------------------
I think, it is not the best solution, because it hides the logic. I would expect, that the code between 'if' and 'else' would be hidden only, like:
if (a > b) then
-------------------------
else
print *, 'Hello'
endif'
For example, such type of folding is for Python (in C++ it depends on how '{ }' are used)
(I have attached a screen-shot to understand better what I mean.)
If you would agree, I could try to implement required changes in Fortran folding.
Committed as [75999d] along with indentation normalization in [f5e8ce].
Related
Commit: [75999d]
Commit: [f5e8ce]
Thank you, Neil.
Darius