Skip to content

Semicolon Rule Misses a Blockquoted Label Bullet, the Sibling of #1190 #2101

Closed

Description

@ptr727

Summary

prose_lint.py's semicolon rule does not recognize a **Label**: bullet inside a blockquote, so a spliced semicolon on that bullet passes. This is the same root cause #1190 fixes for the dash rule: a pattern anchored at the line start (^\s*(?:[-*]|[0-9]+\.)) does not see a list marker that follows a blockquote prefix.

The rule

list_spans drops a bullet's **Label**: opener through LABEL_COLON before the semicolon rule decides whether the sentence announces a list. LABEL_COLON is anchored at ^\s*, so on a blockquoted bullet the label is kept, its colon reads as announcing a list, and the semicolon is excused.

Reproduction

Constructed lines, judged with only the semicolon rule:

Line Result
- **Label**: one, two; three semicolon
> - **Label**: one, two; three clean (false negative)

Expected

A blockquoted bullet is judged as the same bullet unquoted. The QUOTE_PREFIX blanking the dash rule now applies before DASH and LABEL_DASH would apply before list_spans (or inside it) too, with a test per row above.

Found by the local review pass on the #1190 fix, as a pre-existing defect outside that change.

Activity

  1. added
    bug
    pre-existing
    prose
    on Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpre-existingprose

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions