aboutsummaryrefslogtreecommitdiff
path: root/jimregexp.h
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2011-06-05 21:31:55 +1000
committerSteve Bennett <steveb@workware.net.au>2011-06-07 08:46:02 +1000
commitb34ab2f89597d9eb8b1d503fbd14152519eae85a (patch)
treef38b9ebabada0d6eec033fed5e4364d36065f22c /jimregexp.h
parent9049b0e26eb017529d11c9b2375d978c94a04c20 (diff)
downloadjimtcl-b34ab2f89597d9eb8b1d503fbd14152519eae85a.zip
jimtcl-b34ab2f89597d9eb8b1d503fbd14152519eae85a.tar.gz
jimtcl-b34ab2f89597d9eb8b1d503fbd14152519eae85a.tar.bz2
Simplify/fix repeating matches
Simplifies *, + and {n,m}, fixes some broken cases and adds support for {n,m}? Also fixes end-of-word match Under some circumstances, repeats can now be nested. Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jimregexp.h')
-rw-r--r--jimregexp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/jimregexp.h b/jimregexp.h
index 5d7dc94..f4f420b 100644
--- a/jimregexp.h
+++ b/jimregexp.h
@@ -66,6 +66,7 @@ typedef struct regexp {
const char *start; /* Initial string pointer. */
const char *reginput; /* Current input pointer. */
const char *regbol; /* Beginning of input, for ^ check. */
+ const char *prev; /* Ensure we don't try to match nothing more than once */
/* Input to regexec() */
regmatch_t *pmatch; /* submatches will be stored here */