Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
jordan4ibanez opened this issue Aug 13, 2024 · 0 comments
Labels

Comments

@jordan4ibanez
Copy link

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

@jordan4ibanez jordan4ibanez changed the title bug: When a variable contains the word "block" as in block_definition, it thinks you're using the keyword bug: When a variable starts with the word "block" as in block_definition, it thinks you're using the keyword Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant