From f06d0e8287c436b8c391f03c9fc3b606b30cd984 Mon Sep 17 00:00:00 2001 From: apalala Date: Mon, 16 Oct 2023 08:20:46 -0400 Subject: [PATCH] [parsing] also skip comments before memoizing --- tatsu/contexts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tatsu/contexts.py b/tatsu/contexts.py index e1c8959a..556db13c 100644 --- a/tatsu/contexts.py +++ b/tatsu/contexts.py @@ -569,7 +569,7 @@ def rule(self): @property def memokey(self): - self.tokenizer.eat_whitespace() + self.tokenizer.next_token() return MemoKey(self._pos, self.rule, self.substate) def _memoize(self, key, memo):