fortran-language-server icon indicating copy to clipboard operation
fortran-language-server copied to clipboard

multiple declarations for external functions

Open thijssteel opened this issue 5 years ago • 2 comments

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?

thijssteel avatar Aug 27 '20 07:08 thijssteel

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.

hansec avatar Oct 01 '20 19:10 hansec

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

gnikit avatar Jan 21 '22 08:01 gnikit