Menu

#962 improvement of folding for Fortran

Committed
closed
4
2014-08-24
2012-11-24
darmar
No

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.

Discussion

<< < 1 2 (Page 2 of 2)
  • Neil Hodgson

    Neil Hodgson - 2013-11-06

    Committed as [75999d] along with indentation normalization in [f5e8ce].

     

    Related

    Commit: [75999d]
    Commit: [f5e8ce]

  • Neil Hodgson

    Neil Hodgson - 2013-11-06
    • labels: Scintilla --> Scintilla, fortran
    • Group: Won't_Implement --> Committed
     
  • darmar

    darmar - 2013-11-07

    Thank you, Neil.

    Darius

     
  • Neil Hodgson

    Neil Hodgson - 2013-12-12
    • status: open --> closed
     
<< < 1 2 (Page 2 of 2)

Log in to post a comment.