fortran-lang / vscode-fortran-support

Fortran language support for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=fortran-lang.linter-gfortran
MIT License
203 stars 30 forks source link

Highlighting of object-subroutine when using nested types. #1114

Open Or123M opened 1 month ago

Or123M commented 1 month ago

Is there an existing issue for this?

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.