aboutsummaryrefslogtreecommitdiff
path: root/pattern.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-10-02 12:38:42 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-10-02 12:38:42 -0700
commit486fe98a9c7f751998aeb6837dabfea7ac33938d (patch)
tree20de27fdeb9b6b6a11d3963363ba53fbeaddce91 /pattern.h
parent304d5c35a8718b2b0f190e53dece6362d14df1b4 (diff)
Fix for left recursion error due to wrong context
Diffstat (limited to 'pattern.h')
-rw-r--r--pattern.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/pattern.h b/pattern.h
index a1f7043..dd763d5 100644
--- a/pattern.h
+++ b/pattern.h
@@ -83,9 +83,10 @@ typedef struct pat_s {
} capture;
struct {
struct match_s *match;
- unsigned int visits;
const char *at;
struct pat_s *fallback;
+ void *ctx;
+ bool visited;
} leftrec;
struct {
const char *start, *end, *msg;