From ca422e13ce2e19ca31203f30c3220ff919c7a5e8 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 1 Sep 2022 10:24:23 -0500 Subject: [PATCH 1/5] Revert "fix(config): Ignore thead for md" This reverts commit bb04b7270a12af7249b03f0e218ce99f0bac0d65. --- src/config.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/config.rs b/src/config.rs index 081f8e6..0dc3ff2 100644 --- a/src/config.rs +++ b/src/config.rs @@ -235,20 +235,6 @@ impl TypeEngineConfig { ..Default::default() }, }); - patterns - .entry("md".into()) - .or_insert_with(|| GlobEngineConfig { - extend_glob: Vec::new(), - engine: EngineConfig { - dict: Some(DictConfig { - extend_identifiers: maplit::hashmap! { - "thead".into() => "thead".into(), - }, - ..Default::default() - }), - ..Default::default() - }, - }); patterns .entry("vim".into()) .or_insert_with(|| GlobEngineConfig { From 449a20112f8933b35ff7af755a1a7003e7c389e7 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 1 Sep 2022 10:24:32 -0500 Subject: [PATCH 2/5] Revert "fix(config): Ignore thead for jsx/tsx" This reverts commit dc49c98c3cdb43ddc2a8ea49bbff005624d16cfb. --- src/config.rs | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/src/config.rs b/src/config.rs index 0dc3ff2..6a41b9e 100644 --- a/src/config.rs +++ b/src/config.rs @@ -193,34 +193,6 @@ impl TypeEngineConfig { ..Default::default() }, }); - patterns - .entry("js".into()) - .or_insert_with(|| GlobEngineConfig { - extend_glob: Vec::new(), - engine: EngineConfig { - dict: Some(DictConfig { - extend_identifiers: maplit::hashmap! { - "thead".into() => "thead".into(), - }, - ..Default::default() - }), - ..Default::default() - }, - }); - patterns - .entry("ts".into()) - .or_insert_with(|| GlobEngineConfig { - extend_glob: Vec::new(), - engine: EngineConfig { - dict: Some(DictConfig { - extend_identifiers: maplit::hashmap! { - "thead".into() => "thead".into(), - }, - ..Default::default() - }), - ..Default::default() - }, - }); patterns .entry("html".into()) .or_insert_with(|| GlobEngineConfig { From 486002cedd228daa70462a0ffbabf092d35ff8ae Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 1 Sep 2022 10:24:45 -0500 Subject: [PATCH 3/5] Revert "fix(config): Don't correct thead in css as well" This reverts commit 599f3d454468bd8af38953acb38e9b6afe72c21c. --- src/config.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/config.rs b/src/config.rs index 6a41b9e..328facf 100644 --- a/src/config.rs +++ b/src/config.rs @@ -179,20 +179,6 @@ impl TypeEngineConfig { ..Default::default() }, }); - patterns - .entry("css".into()) - .or_insert_with(|| GlobEngineConfig { - extend_glob: Vec::new(), - engine: EngineConfig { - dict: Some(DictConfig { - extend_identifiers: maplit::hashmap! { - "thead".into() => "thead".into(), - }, - ..Default::default() - }), - ..Default::default() - }, - }); patterns .entry("html".into()) .or_insert_with(|| GlobEngineConfig { From b46558d506ca78b731a992ae862026577d5cc481 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 1 Sep 2022 10:25:28 -0500 Subject: [PATCH 4/5] Revert "fix(config): Don't correct thead for HTML" This reverts commit 58012099b13588adf7f74db368e476a309892e9b. --- src/config.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/config.rs b/src/config.rs index 328facf..cba60a8 100644 --- a/src/config.rs +++ b/src/config.rs @@ -179,20 +179,6 @@ impl TypeEngineConfig { ..Default::default() }, }); - patterns - .entry("html".into()) - .or_insert_with(|| GlobEngineConfig { - extend_glob: Vec::new(), - engine: EngineConfig { - dict: Some(DictConfig { - extend_identifiers: maplit::hashmap! { - "thead".into() => "thead".into(), - }, - ..Default::default() - }), - ..Default::default() - }, - }); patterns .entry("vim".into()) .or_insert_with(|| GlobEngineConfig { From 7f470e1721a2f2ac1cebfe22ee88ed48ac25edbd Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 1 Sep 2022 10:24:05 -0500 Subject: [PATCH 5/5] Revert "Revert "fix: remove thead -> thread"" This reverts commit 1e58c65276a6abfeda34bca7b544e50b11345f76. --- crates/typos-dict/assets/words.csv | 1 - crates/typos-dict/src/dict_codegen.rs | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index 727a2f8..af615a5 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -48364,7 +48364,6 @@ thast,that thatn,that,than thay,they thck,thick -thead,thread theard,thread thearding,threading theards,threads diff --git a/crates/typos-dict/src/dict_codegen.rs b/crates/typos-dict/src/dict_codegen.rs index 720596e..9ba0072 100644 --- a/crates/typos-dict/src/dict_codegen.rs +++ b/crates/typos-dict/src/dict_codegen.rs @@ -16217,7 +16217,6 @@ static WORD_THEA_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen: pub static WORD_THEA_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { keys: &[ - dictgen::InsensitiveStr::Ascii("d"), dictgen::InsensitiveStr::Ascii("rd"), dictgen::InsensitiveStr::Ascii("rding"), dictgen::InsensitiveStr::Ascii("rds"), @@ -16228,7 +16227,6 @@ pub static WORD_THEA_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic dictgen::InsensitiveStr::Ascii("ture"), ], values: &[ - &["thread"], &["thread"], &["threading"], &["threads"], @@ -16238,7 +16236,7 @@ pub static WORD_THEA_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic &["theatre"], &["theatre"], ], - range: 1..=5, + range: 2..=5, }; static WORD_THC_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode {