perl.req: Also skip blocks with my var = <<
Before only var = <<BLOCK foo BLOCK was skipped. But my var = <<BLOCK is also valid perl and needs to be skipped for dependency scanning.
This commit is contained in:
parent
6f186deb95
commit
4a9b7f547c
|
@ -104,8 +104,8 @@ sub process_file {
|
|||
|
||||
# skip the "= <<" block
|
||||
|
||||
if (m/^\s*\$(?:.*)\s*=\s*<<\s*(["'`])(.+?)\1/ ||
|
||||
m/^\s*\$(.*)\s*=\s*<<(\w+)\s*;/) {
|
||||
if (m/^\s*(?:my\s*)?\$(?:.*)\s*=\s*<<\s*(["'`])(.+?)\1/ ||
|
||||
m/^\s*(?:my\s*)?\$(.*)\s*=\s*<<(\w+)\s*;/) {
|
||||
$tag = $2;
|
||||
while (<FILE>) {
|
||||
chomp;
|
||||
|
|
Loading…
Reference in New Issue