Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix(#230): remove pattern previously used for contractions
Grant Lemonsec307abb54ee
diff --git a/harper-typst/src/lib.rs b/harper-typst/src/lib.rsindex 8a72fd993..3cb20a559 100644--- a/harper-typst/src/lib.rs+++ b/harper-typst/src/lib.rs@@ -4,7 +4,7 @@ mod typst_translator;use offset_cursor::OffsetCursor;use typst_translator::TypstTranslator;-use harper_core::{parsers::Parser, patterns::SequencePattern, Lrc, Token};+use harper_core::{parsers::Parser, Token};use itertools::Itertools;use typst_syntax::{ast::{AstNode, Markup},@@ -14,13 +14,6 @@ use typst_syntax::{/// A parser that wraps the [`PlainEnglish`] parser allowing one to parse Typst files.pub struct Typst;-thread_local! {- static WORD_APOSTROPHE_WORD: Lrc<SequencePattern> = Lrc::new(SequencePattern::default()- .then_any_word()- .then_apostrophe()- .then_any_word());-}-impl Parser for Typst {fn parse(&self, source: &[char]) -> Vec<Token> {let source_str: String = source.iter().collect();