diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-05-20 13:03:39 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-05-20 13:03:39 -0700 |
commit | b726b048131ad8e5a3b16a13d2a16a33d152e2fd (patch) | |
tree | ecb22ac1e48bc9f672c35bf7a4280540593b9c62 /insns.pl | |
parent | 930d6559164266a08686d03f9ece8cd4863ddd63 (diff) | |
download | nasm-b726b048131ad8e5a3b16a13d2a16a33d152e2fd.tar.gz nasm-b726b048131ad8e5a3b16a13d2a16a33d152e2fd.tar.bz2 nasm-b726b048131ad8e5a3b16a13d2a16a33d152e2fd.zip |
insns.pl: don't require whitespace before / or \
Use Perl's context-sensitive regular expressions to tell split that a
slash or backslash begins a new operator.
Diffstat (limited to 'insns.pl')
-rw-r--r-- | insns.pl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -523,7 +523,7 @@ sub byte_code_compile($) { } $prefix_ok = 1; - foreach $op (split(/\s+/, $opc)) { + foreach $op (split(/\s*(?:\s|(?=[\/\\]))/, $opc)) { if ($op eq 'o16') { push(@codes, 0320); } elsif ($op eq 'o32') { |