Skip to content

Erroneous syntax highlighting for interface arguments #235

Closed
@gnikit

Description

@gnikit

The following code is not highlighted properly due to func not being recognised as an argument

image

MWE

program test_function_as_args
  
  implicit none

  contains

  subroutine set_from_function_scalar(A, func)

    real, dimension(:), intent(inout) :: A
    interface
      function func(X)
        real :: func
        real, dimension(:), intent(in) :: X
      end function func
    end interface

    real, dimension(size(A)) :: B

    B = func(A)

  end subroutine set_from_function_scalar
  
end program test_function_as_args

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions