hansec / fortran-language-server

Fortran Language Server for the Language Server Protocol
MIT License
294 stars 57 forks source link

Problems with fixed format along with continuation character and #202

Open CDK6182CHR opened 3 years ago

CDK6182CHR commented 3 years ago

For some reason I have to work with fixed format fortran files with very long lines. However the language server seems not work well when I combine using the comment starts with ! and contunuation character & in the declarations. An simple example is as follows. It does work well with variables declared before the comment, i.e. x,y,z,a here, image however it says "cannot find any definition of dd" for variables after it. image

Here are the codes.

       program test2
       real*8 x,y
     &  ,z,a   ! this is a comment 
     &  ,d,dd,ddd
     &  ,e,ee,eee
     &  ,f,ff,fff
     &  ,g,gg,ggg

        x=3
        y=4
        z=5
        a=x
        d=3
        dd=4
        ddd=5
        write(*,*) x,y,z,a

        end

Are there anything wrong with my configurations?