aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fpm/src/fpm_sources.f906
1 files changed, 6 insertions, 0 deletions
diff --git a/fpm/src/fpm_sources.f90 b/fpm/src/fpm_sources.f90
index 88a9ffa..d65b9f3 100644
--- a/fpm/src/fpm_sources.f90
+++ b/fpm/src/fpm_sources.f90
@@ -222,6 +222,12 @@ function parse_f_source(f_filename) result(f_source)
if (pass == 2) then
+ if (index(line_parts(2),':') > 0) then
+
+ line_parts(2) = line_parts(2)(index(line_parts(2),':')+1:)
+
+ end if
+
f_source%modules_used(n_use)%s = adjustl(trim(lower(line_parts(2))))
end if