From 486fe98a9c7f751998aeb6837dabfea7ac33938d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 2 Oct 2021 12:38:42 -0700 Subject: Fix for left recursion error due to wrong context --- pattern.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pattern.h') 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; -- cgit v1.2.3