diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl index 082f71b..620986c 100755 --- a/gas-preprocessor.pl +++ b/gas-preprocessor.pl @@ -356,6 +356,7 @@ sub expand_macros { # when argument names are subsets of each other foreach (reverse sort {length $a <=> length $b} keys %replacements) { $macro_line =~ s/\\$_/$replacements{$_}/g; + $macro_line =~ s/\\ $_/$replacements{$_}/g; } $macro_line =~ s/\\\@/$count/g; $macro_line =~ s/\\\(\)//g; # remove \()