vscode-fortran-support icon indicating copy to clipboard operation
vscode-fortran-support copied to clipboard

Highlighting of object-subroutine when using nested types.

Open Or123M opened this issue 1 year ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description

(in reference to the screenshot) primitive_halo and halo are the same type, but halo is nested inside the grad object. I think that "grad%halo" should be highlighted like "primitive_halo", and "exchange_blocking_1d_i4" should be highlighted the same way in both places.

Screenshots

highlight_problem

Code Example

No response

Fortran Version (Free/Fixed Form)

Free Form e.g. F90+

Version of Modern Fortran

v3.2.0

Version of Visual Studio Code

1.90.2

Platform and Architecture

Linux via WSL2

Additional Information

I noticed that if I give a single symbol (with associate) to the nested type (like gh=>grad%halo), the highlighting is correct.

Or123M avatar Jun 30 '24 08:06 Or123M