hansec / fortran-language-server

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

multiple declarations for external functions #169

Open thijssteel opened 4 years ago

thijssteel commented 4 years ago

I work with LAPACK code a lot and they declare external functions in two lines, for example:

REAL         SLANGE
EXTERNAL     SLANGE

This trips up the multiple declarations error. Could there be an exception to this rule for complementary declarations?

hansec commented 3 years ago

Thanks for the report and sorry for the delay. Yes, this shouldn't throw an error since defining multiple "properties" in this way on separate lines is allowed and common place in legacy Fortran code. I will work on correcting this.

gnikit commented 2 years ago

@thijssteel FYI, I have pushed a fix for this in fortls I just forgot to mention it