summaryrefslogtreecommitdiffstats
path: root/opcode-gen
diff options
context:
space:
mode:
authorDan Bornstein <danfuzz@android.com>2010-12-03 15:11:55 -0800
committerDan Bornstein <danfuzz@android.com>2010-12-03 15:11:55 -0800
commita277f14c3702a474e18a9981f23845d7d7521163 (patch)
tree09f2d531b7289f62694745b6d17cad37d7210aa0 /opcode-gen
parent21f322dcd405fddc45a91e4b7d64a2e3d7ebfd15 (diff)
downloadandroid_dalvik-a277f14c3702a474e18a9981f23845d7d7521163.tar.gz
android_dalvik-a277f14c3702a474e18a9981f23845d7d7521163.tar.bz2
android_dalvik-a277f14c3702a474e18a9981f23845d7d7521163.zip
Regular-expression compatibility.
The most compatible way of indicating that a dash is part of a character range is to put a single dash at the end of the range expression. Change-Id: I1e118038dfacffbc004c97be0ae1c3dfe97e861d
Diffstat (limited to 'opcode-gen')
-rw-r--r--opcode-gen/opcode-gen.awk4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcode-gen/opcode-gen.awk b/opcode-gen/opcode-gen.awk
index 0b14a3fa7..9280ed24c 100644
--- a/opcode-gen/opcode-gen.awk
+++ b/opcode-gen/opcode-gen.awk
@@ -48,8 +48,8 @@ consumeUntil != "" {
}
# Detect directives.
-/BEGIN\([a-z---]*\)/ {
- i = match($0, /BEGIN\([a-z---]*\)/);
+/BEGIN\([a-z-]*\)/ {
+ i = match($0, /BEGIN\([a-z-]*\)/);
emission = substr($0, i + 6, RLENGTH - 7);
consumeUntil = "END(" emission ")";
emissionHandled = 0;