@@ -300,21 +300,26 @@ function parse_f_source(f_filename,error) result(f_source)
300
300
end if
301
301
302
302
! Process 'INCLUDE' statements
303
- if (index (adjustl (lower(file_lines(i)% s)),' include' ) == 1 ) then
304
-
305
- n_include = n_include + 1
303
+ ic = index (adjustl (lower(file_lines(i)% s)),' include' )
304
+ if ( ic == 1 ) then
305
+ ic = index (lower(file_lines(i)% s),' include' )
306
+ if (index (adjustl (file_lines(i)% s(ic+7 :)),' "' ) == 1 .or. &
307
+ index (adjustl (file_lines(i)% s(ic+7 :))," '" ) == 1 ) then
306
308
307
- if (pass == 2 ) then
308
- f_source% include_dependencies(n_include)% s = &
309
- & split_n(file_lines(i)% s,n= 2 ,delims= " '" // ' "' ,stat= stat)
310
- if (stat /= 0 ) then
311
- call file_parse_error(error,f_filename, &
312
- ' unable to find include file name' ,i, &
313
- file_lines(i)% s)
314
- return
309
+
310
+ n_include = n_include + 1
311
+
312
+ if (pass == 2 ) then
313
+ f_source% include_dependencies(n_include)% s = &
314
+ & split_n(file_lines(i)% s,n= 2 ,delims= " '" // ' "' ,stat= stat)
315
+ if (stat /= 0 ) then
316
+ call file_parse_error(error,f_filename, &
317
+ ' unable to find include file name' ,i, &
318
+ file_lines(i)% s)
319
+ return
320
+ end if
315
321
end if
316
322
end if
317
-
318
323
end if
319
324
320
325
! Extract name of module if is module
0 commit comments