Description
I have a working code in Fortran 90 that I compile using Silverfrost FTN95 compiler. Code has been in use since 90's and compiler is not resulting in any errors or warnings. However, while using fortls in my VS code I stumble upon this 'Unexpected end of scope at line x' error and then all subsequent subroutines show an error 'Subroutine/Function definition before CONTAINS statement'.
I know that deleting the 'BLOCK DATA' definition will solve this issue entirely. Also, moving this definition to the very end also solves the problem, so it seems that for some reason it affects subsequent methods/functions. However, I am not allowed to modify the code, so both of these solutions are not an option for me.
Is there maybe a setting that I have missed that will help me with this or is this something fortls developer could look at?
Please see attached pictures. First picture shows error at line 2, and the other one shows error at line 10.
best regards,
prs