vscode-fortran-support
vscode-fortran-support copied to clipboard
bug: When a variable starts with the word "block" as in block_definition, it thinks you're using the keyword
Is there an existing issue for this?
- [X] I have searched the existing issues
I have tried the Pre-Release of the extension.
- [X] 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
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