From ee8446b12777dffaec4433a24fc5df9c8e7503fd Mon Sep 17 00:00:00 2001 From: Olivier Delhomme Date: Tue, 17 Jan 2023 20:37:35 +0100 Subject: [PATCH] Adds 'regylar' as a typo for 'regular'. --- crates/typos-dict/assets/words.csv | 1 + crates/typos-dict/src/dict_codegen.rs | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index 7382c8993..e04b29006 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -40525,6 +40525,7 @@ regural,regular regurally,regularly regurlarly,regularly reguster,register +regylar,regular rehabilitacion,rehabilitation rehabilitaion,rehabilitation rehabilitaiton,rehabilitation diff --git a/crates/typos-dict/src/dict_codegen.rs b/crates/typos-dict/src/dict_codegen.rs index 1e5fd53d6..d5ce711d3 100644 --- a/crates/typos-dict/src/dict_codegen.rs +++ b/crates/typos-dict/src/dict_codegen.rs @@ -43632,10 +43632,21 @@ static WORD_REG_CHILDREN: [Option<&dictgen::DictTrieNode<&'static [&'static str] None, None, None, - None, + Some(&WORD_REGY_NODE), None, ]; +static WORD_REGY_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { + children: dictgen::DictTrieChild::Flat(&WORD_REGY_CHILDREN), + value: None, +}; + +pub static WORD_REGY_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { + keys: &[dictgen::InsensitiveStr::Ascii("lar")], + values: &[&["regular"]], + range: 3..=3, +}; + static WORD_REGU_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { children: dictgen::DictTrieChild::Nested(&WORD_REGU_CHILDREN), value: None,