Skip to content

Fix single-line comment right-edge detection stripping trailing punct… - #6

Merged
delphyne merged 1 commit into
mainfrom
single-line-comment-parsing-bug
May 26, 2026
Merged

Fix single-line comment right-edge detection stripping trailing punct…#6
delphyne merged 1 commit into
mainfrom
single-line-comment-parsing-bug

Conversation

@delphyne

Copy link
Copy Markdown
Collaborator

…uation

A single content line can't reveal a non-whitespace frame edge — frames require multiple lines to corroborate. The 1-line branch of rawCommonEdges was using the aggressive frame-edge pattern, which misread trailing content punctuation (e.g. "[MissingAnchor].") as a frame edge and stripped it. Fall back to a whitespace-only right-edge pattern when there's no other non-blank line in the raw comment to support the frame hypothesis.

…uation

A single content line can't reveal a non-whitespace frame edge — frames
require multiple lines to corroborate. The 1-line branch of rawCommonEdges
was using the aggressive frame-edge pattern, which misread trailing content
punctuation (e.g. "[MissingAnchor].") as a frame edge and stripped it.
Fall back to a whitespace-only right-edge pattern when there's no other
non-blank line in the raw comment to support the frame hypothesis.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@delphyne
delphyne merged commit 689d4b4 into main May 26, 2026
4 checks passed
@delphyne
delphyne deleted the single-line-comment-parsing-bug branch May 26, 2026 22:15
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