fortran-plugin
fortran-plugin copied to clipboard
Inserts additional "end program" statements
The fortran plugin will sometimes add additional "end program" statements (improperly indented, and not at the end of the code) while I am editing code. Additionally, it is not properly indented and can be easily overlooked. I have seen this issue occur when there is a syntax error in the else if statement. Here is a code snippet where I just encountered the problem. The line " end program hash_example" was generated when I hit enter after the previous else if statement containing a syntax error.
do while(f == -1)
if(index(k) == -100) then
f = -k
else if(item=names(index(k))) then
end program hash_example
end if
end do
end function find
end program