Skip to content

Commit 467eff4

Browse files
committed
fix use identification
fix use identification Update fpm_source_parsing.f90
1 parent 2dd4222 commit 467eff4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/fpm_source_parsing.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,8 @@ subroutine parse_use_statement(f_filename,i,line,use_stmt,is_intrinsic,module_na
643643
lowercase = lower(trim(adjustl(line)))
644644

645645
! 'use' should be the first string in the adjustl line
646-
use_stmt = index(lowercase,'use')==1; if (.not.use_stmt) return
646+
use_stmt = index(lowercase,'use ')==1 .or. index(lowercase,'use::')==1 .or. index(lowercase,'use,')==1
647+
if (.not.use_stmt) return
647648
colons = index(lowercase,'::')
648649
nonintr = 0
649650
intr = 0

0 commit comments

Comments
 (0)