hansec / fortran-language-server

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

Fortls shows no matching begining #172

Closed Jim-215-Fisher closed 3 years ago

Jim-215-Fisher commented 4 years ago

In submodule, 'end module procedure' clause shows no matched beginning. In fact, 'end module procedure' matched 'submodule' clause instead of 'module procedure' clause

hansec commented 3 years ago

Thanks for the report and sorry for the delay. This certainly sounds like a bug, but I am not exactly sure what you are describing. Can you provide a short code snippet that demonstrates this problem? Thanks!

Jim-215-Fisher commented 3 years ago

submodule(T1) T2 contains module procedure test ... end module procedure test end submodule T2

In this snippet, "end module procedure test" is not matched with "module procedure test" but "submodule(T1) T2" in Fortls.

hansec commented 3 years ago

Great, thanks for the snippet. I am now able to reproduce this and will hopefully have a fix shortly.