syncfiles: use the same regexp for hints as mkdep uses

Use the same regular expression for hints in both mkdep and syncfiles.
This commit is contained in:
H. Peter Anvin 2008-06-15 18:35:01 -07:00
parent 19b741835f
commit 85a6670ebe

View File

@ -39,7 +39,7 @@ foreach $file (@ARGV) {
# First, read the syntax hints
%hints = %def_hints;
while (defined($line = <FILE>)) {
if ($line =~ /^\#\s+\@(\S+)\:\s*\"([^\"]*)\"/) {
if ( $line =~ /^\s*\#\s*@([a-z0-9-]+):\s*\"([^\"]*)\"/ ) {
$hints{$1} = $2;
}
}