summaryrefslogtreecommitdiff
path: root/insns.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-05-20 13:03:39 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-05-20 13:03:39 -0700
commitb726b048131ad8e5a3b16a13d2a16a33d152e2fd (patch)
treeecb22ac1e48bc9f672c35bf7a4280540593b9c62 /insns.pl
parent930d6559164266a08686d03f9ece8cd4863ddd63 (diff)
downloadnasm-b726b048131ad8e5a3b16a13d2a16a33d152e2fd.tar.gz
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.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/insns.pl b/insns.pl
index 6b6375ed..280b8b2e 100644
--- a/insns.pl
+++ b/insns.pl
@@ -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') {