Skip to content

Fix RecursionError in parsing config with comments#282

Merged
rbikar merged 1 commit into
release-engineering:masterfrom
lubomir:fix-config-parsing
May 26, 2026
Merged

Fix RecursionError in parsing config with comments#282
rbikar merged 1 commit into
release-engineering:masterfrom
lubomir:fix-config-parsing

Conversation

@lubomir
Copy link
Copy Markdown
Contributor

@lubomir lubomir commented May 11, 2026

Replace recursive self-calls for skipping COMMENT, NL, NEWLINE, INDENT, and DEDENT tokens with a loop, preventing stack exhaustion on configs with many consecutive comment or blank lines.

Replace recursive self-calls for skipping COMMENT, NL, NEWLINE, INDENT, and
DEDENT tokens with a loop, preventing stack exhaustion on configs with many
consecutive comment or blank lines.

Closes: release-engineering#281
Assisted-By: OpenCode (claude-sonnet-4-6@default)
@rbikar rbikar merged commit e6be64f into release-engineering:master May 26, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants