Skip to content

Conversation

@max-models
Copy link

@max-models max-models commented Oct 23, 2025

This PR resolves a problem when trying to use fprettify on continued lines with comments in between. Mentioned here.

For example, the following code

program mwe_bad_line_continuation
   implicit none

   real :: x, y, z

   x = 1.0
   y = 2.0

   z = x + &
       ! comment
        & y
   print *, z
end program mwe_bad_line_continuation

previously gave raise FprettifyParseException("Bad continuation line format", filename, line_nr) error.

@max-models max-models marked this pull request as ready for review October 23, 2025 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant