Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion syncode/parsers/itergen_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ def _update_symbol_pos_map_terminals(self, lexer_tokens: Iterable[Token], parsed

# We don't add the last lexer token as it may change in the future
# Essntially, we don't want IterGen to stop immediatelly after generating terminal which may extend in the future
start_idx -= 1
if start_idx > 0:
start_idx -= 1

end_idx = len(lexer_tokens)-1

for idx in range(start_idx, end_idx):
Expand Down