Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix(comments): ignore comments CSpell compatibility
Matthew Espino8d6deaad977f
diff --git a/harper-comments/src/masker.rs b/harper-comments/src/masker.rsindex b6147df87..8da034899 100644--- a/harper-comments/src/masker.rs+++ b/harper-comments/src/masker.rs@@ -21,10 +21,12 @@ impl CommentMasker {Box::new(|text| {text.contains("spellchecker:ignore")|| text.contains("spellchecker: ignore")+ || text.contains("spell-checker:ignore")+ || text.contains("spell-checker: ignore")|| text.contains("spellcheck:ignore")|| text.contains("spellcheck: ignore")- || text.contains("cspell:ignore")- || text.contains("cspell: ignore")+ || text.contains("cSpell:ignore")+ || text.contains("cSpell: ignore")|| text.contains("harper:ignore")|| text.contains("harper: ignore")|| text.starts_with("#!")