Skip to content

Commit 3a898f3

Browse files
committed
don't look at comments
1 parent e84ecd0 commit 3a898f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function includeline(file::AbstractString, included_file::AbstractString)
131131
i = 0
132132
open(file) do io
133133
for (index, line) in enumerate(eachline(io))
134-
m = match(r"include\(\"([a-zA-Z_\.\\/]*)\"\)", line)
134+
m = match(r"^[^#]*\binclude\(\"([a-zA-Z_\.\\/]*)\"\)", line)
135135
if m != nothing && normpath(joinpath(dirname(file), m.captures[1])) == included_file
136136
i = index
137137
break

0 commit comments

Comments
 (0)