bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#19809: 24.4; f90-beginning-of-subprogram wrong behavior with string


From: Glenn Morris
Subject: bug#19809: 24.4; f90-beginning-of-subprogram wrong behavior with string continuation
Date: Tue, 10 Feb 2015 20:27:25 -0500
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Raul Laasner wrote:

> The functions f90-beginning-of-subprogram and f90-end-of-subprogram do not
> work correctly if the source file contains lines which begin with the
> correct keywords but in fact belong to a continued string. For instance, in
> the following,
>
> subroutine foo()
>   print*, '&
>        end subroutine foo'
>   ! The cursor is here
> end subroutine foo

But that's not valid Fortran? Continued strings must use '&' at the
start of the continued lines as well? Eg gfortran 4.8.2 says:

    Warning: Missing '&' in continued character constant at (1)

Ie, you must write
  
   subroutine foo()
     print*, '&
          &end subroutine foo'
   end subroutine foo

in which case there isn't a problem.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]