Skip to content

Commit

Permalink
make generate_precompile a little more robust (#32850)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski authored Aug 10, 2019
1 parent 70586ce commit 5331e12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrib/generate_precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ function generate_precompile_statements()
statements = Set{String}()
for statement in eachline(precompile_file_h)
occursin("Main.", statement) && continue
# check for `#x##s66` style variable names not in quotes
occursin(r"#\w", statement) &&
count(r"(?:#+\w+)+", statement) !=
count(r"\"(?:#+\w+)+\"", statement) && continue
push!(statements, statement)
end

Expand Down

0 comments on commit 5331e12

Please sign in to comment.