summaryrefslogtreecommitdiff
path: root/syncfiles.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-06-15 18:35:01 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-06-15 18:35:01 -0700
commit85a6670ebeca5d85234485cb42f26abf87c64815 (patch)
treed12286b95e79021570a1c0c5f841c08bfa2ac770 /syncfiles.pl
parent19b741835f684191f35c05d21c1b098a80a96410 (diff)
downloadnasm-85a6670ebeca5d85234485cb42f26abf87c64815.tar.gz
nasm-85a6670ebeca5d85234485cb42f26abf87c64815.tar.bz2
nasm-85a6670ebeca5d85234485cb42f26abf87c64815.zip
syncfiles: use the same regexp for hints as mkdep uses
Use the same regular expression for hints in both mkdep and syncfiles.
Diffstat (limited to 'syncfiles.pl')
-rwxr-xr-xsyncfiles.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/syncfiles.pl b/syncfiles.pl
index bd40ff2..57bae5a 100755
--- a/syncfiles.pl
+++ b/syncfiles.pl
@@ -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;
}
}