Skip to content

Conversation

@dorchard
Copy link
Member

@dorchard dorchard commented Apr 25, 2025

This PR adds support for legacy extensions but in free form lexing, i.e., for Fortran 90 code. This handles issue #307

  • new Fortran90Legacy version (and associated changes)
  • Handle structure
  • union
  • map
  • Handle automatic
  • Handle static
  • Tests pass

Note this can't handle structures with comments at the end of lines:

structure /foo/
  ! comment before union"
    union
      ! comment inside union, before map
         map
         ! comment inside map
             integer i ! more comment"
             end map
     end union
end structure

Does it need to?

@dorchard dorchard changed the title Free form legacy support Free form legacy support (Fortran90Legacy mode). Dec 10, 2025
Copy link
Contributor

@nikolaushuber nikolaushuber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dorchard dorchard merged commit 48e7ff5 into main Dec 19, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants