mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-23 17:29:23 +08:00
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:
parent
19b741835f
commit
85a6670ebe
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user