Skip to content

fix(filter): preserve code around block comments - #3086

Open
lntutor wants to merge 1 commit into
rtk-ai:developfrom
lntutor:fix/2714-inline-block-comments
Open

fix(filter): preserve code around block comments#3086
lntutor wants to merge 1 commit into
rtk-ai:developfrom
lntutor:fix/2714-inline-block-comments

Conversation

@lntutor

@lntutor lntutor commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • remove block-comment spans instead of dropping every line containing a comment marker
  • preserve code before and after same-line comments
  • preserve code before an opening comment and after a later closing delimiter
  • support multiple block-comment spans per line while retaining Rust doc blocks
  • trim only horizontal whitespace left at the end of stripped lines

Testing

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test --all-features (2,498 passed, 8 ignored)

Closes #2714

@CLAassistant

CLAassistant commented Jul 20, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@lntutor
lntutor force-pushed the fix/2714-inline-block-comments branch from 6eb0d59 to 13c5746 Compare July 31, 2026 00:11
@lntutor
lntutor force-pushed the fix/2714-inline-block-comments branch from 13c5746 to 03a6b8a Compare July 31, 2026 00:54
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.

Bug: MinimalFilter drops code on lines with inline block comments (code loss)

2 participants