fn classify_review_line(
line: &str,
seen_quoted: bool,
palette: &ColorPalette,
) -> StyleExpand description
Classify a line from a Sashiko inline review with context about whether we’ve seen quoted diff content yet.
Sashiko inline reviews have a three-part structure:
-
Patch metadata/summary — unquoted lines before any
>-quoted diff (commit hash, Author:, Subject:, description, Links). Styled asmuted. -
Quoted diff — lines with
>prefix containing patch content. Classified by diff role (green/red/cyan/bold/muted). -
Reviewer commentary — unquoted lines after the first
>-quoted section. This is the AI review analysis. Styled asforeground.
The seen_quoted flag tracks whether any >-quoted line has been
encountered. Before that, unquoted text is patch context. After,
unquoted text is reviewer commentary.