diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2000-07-01 23:49:14 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2000-07-01 23:49:14 (GMT) |
commit | c13222cdff4373a9763b9c7df4b2e12e7e3b776f (patch) | |
tree | 7ce04dc8e3322672ab512488bbfdb362986b56a3 /Modules/_sre.c | |
parent | 0cebe439ce26ed5a14d77771c01e50d9dcc6ad11 (diff) | |
download | cpython-c13222cdff4373a9763b9c7df4b2e12e7e3b776f.zip cpython-c13222cdff4373a9763b9c7df4b2e12e7e3b776f.tar.gz cpython-c13222cdff4373a9763b9c7df4b2e12e7e3b776f.tar.bz2 |
- fixed "{ in any other context" bug
- minor comment touchups in the C module
Diffstat (limited to 'Modules/_sre.c')
-rw-r--r-- | Modules/_sre.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c index 3d6305a..7206b95 100644 --- a/Modules/_sre.c +++ b/Modules/_sre.c @@ -19,7 +19,7 @@ * 00-06-25 fl major changes to better deal with nested repeats (0.9) * 00-06-28 fl fixed findall (0.9.1) * 00-06-29 fl fixed split, added more scanner features (0.9.2) - * 00-06-30 fl tuning, fast search (0.9.3) + * 00-06-30 fl added fast search optimization (0.9.3) * 00-06-30 fl added assert (lookahead) primitives, etc (0.9.4) * * Copyright (c) 1997-2000 by Secret Labs AB. All rights reserved. @@ -365,18 +365,21 @@ SRE_MEMBER(SRE_CODE* set, SRE_CODE ch) return !ok; case SRE_OP_LITERAL: + /* args: <literal> */ if (ch == set[0]) return ok; set++; break; case SRE_OP_RANGE: + /* args: <lower> <upper> */ if (set[0] <= ch && ch <= set[1]) return ok; set += 2; break; case SRE_OP_CATEGORY: + /* args: <category> */ if (sre_category(set[0], (int) ch)) return ok; set += 1; |