hansec / fortran-language-server

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

Old style parametric-length char array declaration not recognized #130

Closed timtylin closed 5 years ago

timtylin commented 5 years ago

We have some old code floating around with declarations of the form

INTEGER :: N
CHARACTER*(N) :: S

which isn't exactly the best coding style but is essentially equivalent to

INTEGER :: N
CHARACTER(LEN=N) :: S

Both are recognised by gfortran and ifort, however FLS would fail to properly parse the length of S in the former case. It seems to think it's of the form "CHARACTER" instead of "CHARACTER(N)" like I would expect.

(using 1.10.1)