Skip to content

fix: drop leading body comment from skeleton signatures#78

Merged
rasros merged 2 commits into
mainfrom
fix/skeleton-sig-comment-leak
Jul 2, 2026
Merged

fix: drop leading body comment from skeleton signatures#78
rasros merged 2 commits into
mainfrom
fix/skeleton-sig-comment-leak

Conversation

@rasros

@rasros rasros commented Jul 2, 2026

Copy link
Copy Markdown
Owner

EmitFuncSig emitted every line from the signature up to the row before the body, so a comment sitting between the signature and the body (e.g. a Python method whose first body line is a comment) leaked into the -u/-Y output. Stop the emitted range at the last non-comment child before the body instead. Affects the indent-body languages (Python, Ruby, Haskell); brace languages already end the signature at the opening brace. Adds golden coverage for each affected language.

@rasros rasros merged commit 2f5dcd5 into main Jul 2, 2026
1 check passed
@rasros rasros deleted the fix/skeleton-sig-comment-leak branch July 2, 2026 17:24
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