From 2330c3bd603dd55360b4f328add4b0bf53514b1d Mon Sep 17 00:00:00 2001 From: pompolic <pompolic@special-circumstanc.es> Date: Fri, 28 Oct 2022 20:48:23 +0200 Subject: [PATCH] (WIP) Fix towards the correct token span getting printed after another h_packrat_parse() --- gdb-port/top-level-parse.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gdb-port/top-level-parse.py b/gdb-port/top-level-parse.py index ab97341..0ec68aa 100644 --- a/gdb-port/top-level-parse.py +++ b/gdb-port/top-level-parse.py @@ -468,6 +468,7 @@ class TopLevelParse: end = self.input_token_map[int(addr)]['end'] i = 0 printing_tokens = [token] + self.printing_index = 0 while i < len(printing_tokens): tk = printing_tokens[i] if tk.token_type == HParsedToken.TT_SEQUENCE: -- GitLab