You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Semicolon Rule Misses a Blockquoted Label Bullet, the Sibling of #1190 #2101
bugSomething isn't workingpre-existingReview finding classed pre-existing per local-strict-review Disposing of FindingsproseA defect in rule or procedure text
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.
bugSomething isn't workingpre-existingReview finding classed pre-existing per local-strict-review Disposing of FindingsproseA defect in rule or procedure text
Activity
Skip a Blockquoted List Marker in the Prose Gate's Dash Rule (#2102)
Skip a Blockquoted List Marker in the Prose Gate's Semicolon Rule (#2128