You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If we define the label or variable with name block, then it would indicate end of routine as incorrect end.
To Reproduce
If I use the following command fortls --debug_filepath test_rename_block.f90 --debug_rootpath . --debug_full_result --debug_log I get info:
DEBUG:fortls.constants:REQUEST None None
INFO:fortls.constants:fortls - Fortran Language Server 0.1.dev986+g8f11b57 Initialized
The example of code:
module test_rename_block
implicit nonecontainssubroutineblock_test01()
integer:: i
block: do i =1, 1write(*, *) "use label with name block : ", i
end do block
endsubroutine block_test01subroutineblock_test02()
integer:: block
do block =1, 1write(*, *) "use index name block :", block
end doendsubroutine block_test02
end module test_rename_block
program driver
use test_rename_block
implicit nonecall block_test01()
call block_test02()
end program driver
Expected behavior
If we use variable or label name as block the fortls won't expect end block part and must show end of subroutine/function correctly.
Screenshots & Animations
Setup information (please complete the following information):
OS: Windows10
Python Version Python 3.11.4
fortls Version 0.1.dev986+g8f11b57
Code editor 1.79.2
the Fortran extension for the code editor and its version [Modern Fortran v3.2.0]
The text was updated successfully, but these errors were encountered:
Describe the bug
If we define the label or variable with name
block
, then it would indicate end of routine as incorrect end.To Reproduce
If I use the following command
fortls --debug_filepath test_rename_block.f90 --debug_rootpath . --debug_full_result --debug_log
I get info:The example of code:
Expected behavior
If we use variable or label name as
block
thefortls
won't expect end block part and must show end of subroutine/function correctly.Screenshots & Animations
Setup information (please complete the following information):
The text was updated successfully, but these errors were encountered: