Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with fixed format along with continuation character and #202

Open
CDK6182CHR opened this issue Jul 26, 2021 · 0 comments
Open

Problems with fixed format along with continuation character and #202

CDK6182CHR opened this issue Jul 26, 2021 · 0 comments

Comments

@CDK6182CHR
Copy link

CDK6182CHR commented Jul 26, 2021

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?

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

No branches or pull requests

1 participant