Skip to content

Commit

Permalink
[parsing] also skip comments before memoizing
Browse files Browse the repository at this point in the history
  • Loading branch information
apalala committed Oct 16, 2023
1 parent 6115895 commit f06d0e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tatsu/contexts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f06d0e8

Please sign in to comment.