From d6e9d52477bc0951ad61fbc8df166da833af296b Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Tue, 16 Aug 2022 10:10:46 +0200 Subject: [PATCH] feat(dict): Add "deffer" to typo list --- crates/typos-dict/assets/words.csv | 1 + crates/typos-dict/src/dict_codegen.rs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index 81d5fff..26c2129 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -13818,6 +13818,7 @@ defering,deferring deferreal,deferral defetead,defeated deffensively,defensively +deffer,differ,defer deffered,differed,deferred defference,difference,deference defferent,different,deferent diff --git a/crates/typos-dict/src/dict_codegen.rs b/crates/typos-dict/src/dict_codegen.rs index 703cd35..4f62c95 100644 --- a/crates/typos-dict/src/dict_codegen.rs +++ b/crates/typos-dict/src/dict_codegen.rs @@ -131709,6 +131709,7 @@ static WORD_DEFF_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen: pub static WORD_DEFF_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { keys: &[ dictgen::InsensitiveStr::Ascii("ensively"), + dictgen::InsensitiveStr::Ascii("er"), dictgen::InsensitiveStr::Ascii("ered"), dictgen::InsensitiveStr::Ascii("erence"), dictgen::InsensitiveStr::Ascii("erent"), @@ -131725,6 +131726,7 @@ pub static WORD_DEFF_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic ], values: &[ &["defensively"], + &["differ", "defer"], &["differed", "deferred"], &["difference", "deference"], &["different", "deferent"], @@ -131739,7 +131741,7 @@ pub static WORD_DEFF_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic &["definitively"], &["different"], ], - range: 3..=9, + range: 2..=9, }; static WORD_DEFE_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode {