hansec / fortran-language-server

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

Derived type member access does not tolerate spaces around the percent sign #204

Open rwirth opened 3 years ago

rwirth commented 3 years ago

Given some derived type

TYPE(t_mytype)
    INTEGER :: member
END TYPE

the following field access is accepted by multiple Fortran compilers

TYPE(t_mytype) :: var

var% member = 1

However, when hovering over member in VSCode, no information is shown. If there is a variable member in the same scope, its declaration is shown instead.

gnikit commented 2 years ago

Do you know if spaces after % are considered standard notation?

JHenneberg commented 2 years ago

@gnikit : Not sure if there is any stanard notation. I did not see this before.

gnikit commented 2 years ago

@JHenneberg thanks for looking into this, I greatly appreciate it. That was my understanding as well. I think for now this will got on the not-implement pile for fortls