Skip to content

bug: When a variable starts with the word "block" as in block_definition, it thinks you're using the keyword #1134

Open
@jordan4ibanez

Description

@jordan4ibanez

Is there an existing issue for this?

  • I have searched the existing issues

I have tried the Pre-Release of the extension.

  • I have replicated the Issue in the latest Pre-Release

Description

I have the variable block_definition_array and when I try to access it in a subroutine such as:

module cool

  type(block_definition), dimension(:), allocatable :: block_definition_array

contains

  subroutine blah()
    implicit none

    ! here
    block_definition_array(current_id) = definition_smart_pointer
  end subroutine blah

end module cool

it thinks I am using a block construct that doesn't get closed.

If I rename it to even t_block_definition_array this issue goes away.

I switched to a pre-release, and it's still an issue.

Screenshots

image
image

Expected Behaviour

I expect to be able to use variable names that start with block.

Version of Modern Fortran

v3.4.2024061901 (pre-release)

Version of Visual Studio Code

1.92.1

Platform and Architecture

Linux Mint 22 x86_64

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions