fortls icon indicating copy to clipboard operation
fortls copied to clipboard

rename symbol in paramter list of function breaks when `&` is used

Open JHenneberg opened this issue 2 years ago • 1 comments

Hi,

renaming some to other fails when:

  function mySub(some) result(res) &
      bind(c, NAME="someName")
    implicit none

    integer(4), intent(in) :: some
    integer(4) :: res

    write(*, *) some

  end function mySub

Same is true for res, but changing the function name still works.

without ampersand it is working:

  function mySub(some) result(res) bind(c, NAME="someName")
    implicit none

    integer(4), intent(in) :: some
    integer(4) :: res

    write(*, *) some

  end function mySub

Edit: Might be also related to #59

JHenneberg avatar Apr 12 '22 09:04 JHenneberg

thanks for the bug report @JHenneberg I will have a look at it whenever I get some free time. Please be also aware of this rename bug https://github.com/gnikit/fortls/issues/52.

gnikit avatar Apr 12 '22 10:04 gnikit