Skip to content

Conversation

@asukaminato0721
Copy link
Contributor

@asukaminato0721 asukaminato0721 commented Nov 20, 2025

fix #18833

Extended the closing-brace hint matcher to recognize MatchArmList nodes and many more BlockExpr parents (loops/while let/for/if+else/let else/match arms) while also prefixing function labels with qualifiers such as async/const/unsafe.

Added reusable helpers for qualifier formatting, trimmed snippet extraction with sane defaults, and label builders for for, if, let else, match/arms so new scopes produce concise, truncated captions instead of raw syntax.

Refreshed the test suite with an async fn coverage case plus a new expect_test that locks down the added block kinds and match-arm behavior, ensuring future regressions are caught without fighting //^ annotations.

@asukaminato0721 asukaminato0721 marked this pull request as ready for review November 20, 2025 14:47
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 20, 2025
@asukaminato0721 asukaminato0721 marked this pull request as draft November 20, 2025 14:54
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 20, 2025
@asukaminato0721 asukaminato0721 marked this pull request as ready for review November 20, 2025 15:16
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display scope inlay hints after closing brace for more types of blocks

2 participants