[scintilla:bugs] #2509 Fortran folding update

1 view
Skip to first unread message

darmar

unread,
May 16, 2026, 11:06:19 AMMay 16
to scintill...@googlegroups.com

[bugs:#2509] Fortran folding update

Status: open
Group: Bug
Labels: fortran folding
Created: Sat May 16, 2026 03:06 PM UTC by darmar
Last Updated: Sat May 16, 2026 03:06 PM UTC
Owner: nobody
Attachments:

Fortran 2023 added "enumeration type" and "change team" constructs. Folding for these constructs is not correct in Scintilla. I prepared a small patch which corrects this.

Examples:

ENUMERATION TYPE :: v_value
    Enumerator :: v_one, v_two, v_three
    Enumerator v_four
END ENUMERATION TYPE

CHANGE TEAM (NEW_TEAM)
    !
    A [1] = 9.0
END TEAM

Sent from sourceforge.net because scintill...@googlegroups.com is subscribed to https://sourceforge.net/p/scintilla/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/scintilla/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.

Neil Hodgson

unread,
May 17, 2026, 1:00:31 AMMay 17
to scintill...@googlegroups.com

You sent a patch for change team folding in 2018 which was committed and appears to work.
https://github.com/ScintillaOrg/lexilla/commit/cbe9a57c8b178aaf13069df1f272078bae9bd268

The new patch seems to duplicate the purpose of the previous patch. Maybe the previous change team code should be removed?

Lexilla is now a separate project and is maintained on GitHub as https://github.com/ScintillaOrg/lexilla . It is better for patches to be sent there as that is where the community expects them and it helps maintain the links between issues and changes. The other issue [#2508] is fine here as SciTE hasn't moved to GitHub.

There's also a testing framework (see lexilla/test/README) where example text files are stored and checked to make sure fixes stay fixed. So add a test case file to lexilla/test/examples/fortran with the new constructs.

darmar

unread,
May 17, 2026, 2:26:29 PMMay 17
to scintill...@googlegroups.com

You are right about duplicate. Somehow I managed to overlook this.
I will send updated patch to Lexille on github.


[bugs:#2509] Fortran folding update

Status: open
Group: Bug
Labels: fortran folding
Created: Sat May 16, 2026 03:06 PM UTC by darmar

Last Updated: Sun May 17, 2026 05:00 AM UTC
Owner: nobody
Attachments:

Neil Hodgson

unread,
May 25, 2026, 8:30:22 PM (9 days ago) May 25
to scintill...@googlegroups.com

[bugs:#2509] Fortran folding update

Status: open
Group: Bug
Labels: fortran folding
Created: Sat May 16, 2026 03:06 PM UTC by darmar

Last Updated: Sun May 17, 2026 06:26 PM UTC
Owner: nobody
Attachments:

Neil Hodgson

unread,
May 25, 2026, 8:30:50 PM (9 days ago) May 25
to scintill...@googlegroups.com
  • labels: fortran, folding --> fortran, folding, lexilla
  • status: open --> open-fixed

[bugs:#2509] Fortran folding update

Status: open-fixed
Group: Bug
Labels: fortran folding lexilla

Created: Sat May 16, 2026 03:06 PM UTC by darmar

Last Updated: Tue May 26, 2026 12:30 AM UTC
Owner: nobody
Attachments:

Reply all
Reply to author
Forward
0 new messages