Jeff,
Something peculiar is occurring in this code. Any changes in the code corrects the error encountered when using the file outline highlight search. The code below however, reproducibly highlights the incorrect routine on my PC using SF 2.9. Oddly, removing comments or adding comments seems to correct the problem.
Frank
!*********************************************************************72
subroutine s_control_blank ( s )
!*********************************************************************72
!
implicit none
logical ch_is_control
integer i
character*(*) s
integer s_len_trim
integer s_length
s_length = s_len_trim ( s )
do i = 1, s_length
if ( ch_is_control ( s(i:i) ) ) then
s(i:i) = ' '
end if
end do
return
end !subroutine s_control_blank
!*********************************************************************72
function ch_is_control ( c )
!*********************************************************************72
!
! Parameters:
! Input, character C, the character to be tested.
!
! Output, logical CH_IS_CONTROL, TRUE if C is a control character, and
! FALSE otherwise.
!
implicit none
character c
logical ch_is_control
if ( ichar ( c ) <= 31 .or. ichar ( c ) >= 127 ) then
ch_is_control = .true.
else
ch_is_control = .false.
end if
return
end !function ch_is_control