Skip to content
Open
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
2 changes: 1 addition & 1 deletion src/cbexigen/base_coder_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ def _add_particle_or_choice_list_to_details(
add_extra = (part.max_occurs >= 1 and part.max_occurs_was_changed)
skip_to_end = False # for LOOP, do not create grammar for subsequent repetitions
for m in range(1, _max + 1):
if skip_to_end:
if skip_to_end and m < _max:
continue
if m < _max:
# flag=Grammar.LOOP indicates that the _next_ grammar will be the same as this one
Expand Down