Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix: solve issue #2966 (#2967)
Andrew Dunbarfeed915c535c
diff --git a/harper-core/src/linting/discourse_markers.rs b/harper-core/src/linting/discourse_markers.rsindex 5954bd413..88ad8392a 100644--- a/harper-core/src/linting/discourse_markers.rs+++ b/harper-core/src/linting/discourse_markers.rs@@ -48,7 +48,12 @@ impl DiscourseMarkers {Self {expr: SequenceExpr::with(phrases_expr).t_ws()- .then_unless(UPOSSet::new(&[UPOS::ADJ, UPOS::ADV, UPOS::ADP])),+ .then_unless(UPOSSet::new(&[+ UPOS::ADJ,+ UPOS::ADV,+ UPOS::ADP,+ UPOS::CCONJ,+ ])),}}@@ -291,4 +296,12 @@ mod tests {DiscourseMarkers::default(),);}++ #[test]+ fn check_2966_is_avoided() {+ assert_no_lints(+ "Honestly and graciously convince someone of something.",+ DiscourseMarkers::default(),+ );+ }}