hansec / fortran-language-server

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

VSCODE Issues For End of Scope & CONTAINS statement & Syntax Error #182

Open zhongxiang117 opened 3 years ago

zhongxiang117 commented 3 years ago

They are three issues on the [fortran_fixed-form].

To reproduce them, a file is created: issues-fortranls-fixed-form

Unexpected end of scope at line X

The same issue for f90 #136 has been fixed, however for the [fortran_fixed-form], the issue is still here.

Subroutine/Function definition before CONTAINS statement

I looked on the source codes, found it in objects.py---line-647

As far as know, this warning info is caused by defining the block or contain statements before the subroutine? Am I correct?

However, does it have any way to prevent this warning info?

Syntax Error on TYPE parsing

A similar issue #181 , it seems the TYPE word is wrongly parsed in COMMON block as the keywords rather than the general variables or literals, and thus causing all the following Syntax Highlights failing..