diff options
| author | Damien George <damien.p.george@gmail.com> | 2018-05-24 13:08:15 +1000 |
|---|---|---|
| committer | Noralf Trønnes <noralf@tronnes.org> | 2019-02-14 15:42:21 +0100 |
| commit | cbeac094ef88b1f6a12cad7a3135f0530302ad20 (patch) | |
| tree | d33e2d25e14a0de1c5e6bbf3391f6bc0438f1afa /py/mpconfig.h | |
| parent | a24fabbb6fc0b7dedd56a363e5eb5819010fec37 (diff) | |
extmod/modure: Add match.span(), start() and end() methods, and tests.
This feature is controlled at compile time by
MICROPY_PY_URE_MATCH_SPAN_START_END, disabled by default.
Thanks to @dmazzella for the original patch for this feature; see #3770.
Diffstat (limited to 'py/mpconfig.h')
| -rwxr-xr-x | py/mpconfig.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 8f789e861..cf757cf42 100755 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -1168,6 +1168,10 @@ typedef double mp_float_t; #define MICROPY_PY_URE_MATCH_GROUPS (0) #endif +#ifndef MICROPY_PY_URE_MATCH_SPAN_START_END +#define MICROPY_PY_URE_MATCH_SPAN_START_END (0) +#endif + #ifndef MICROPY_PY_UHEAPQ #define MICROPY_PY_UHEAPQ (0) #endif |
