Skip to content

Fix RecursionError in parsing config with comments#282

Open
lubomir wants to merge 1 commit into
release-engineering:masterfrom
lubomir:fix-config-parsing
Open

Fix RecursionError in parsing config with comments#282
lubomir wants to merge 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)
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.

1 participant