From 68e8611ef5e53612fa5e7676ea62306058c12b3d Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 1 Apr 2024 15:15:53 -0500 Subject: [PATCH] fix: Don't correct eof --- crates/typos-dict/assets/allowed.csv | 2 ++ crates/typos-dict/assets/words.csv | 1 - crates/typos-dict/src/word_codegen.rs | 13 +------------ 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/crates/typos-dict/assets/allowed.csv b/crates/typos-dict/assets/allowed.csv index ec18ca3..812fa2f 100644 --- a/crates/typos-dict/assets/allowed.csv +++ b/crates/typos-dict/assets/allowed.csv @@ -20,3 +20,5 @@ revered,valid word and not just a typoe of `reversed` recuse,valid word despite maybe being a typo of recurse shttp,also a protocol foldr,short for fold-right +eof,end-of-file in programming +eol,end-of-line in programming diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index f0b24d4..5b24acd 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -22669,7 +22669,6 @@ envvironment,environment enxt,next enything,anything enyway,anyway -eof,of epecifica,especifica epect,expect epected,expected diff --git a/crates/typos-dict/src/word_codegen.rs b/crates/typos-dict/src/word_codegen.rs index 115dde6..e26c04a 100644 --- a/crates/typos-dict/src/word_codegen.rs +++ b/crates/typos-dict/src/word_codegen.rs @@ -134871,7 +134871,7 @@ static WORD_E_CHILDREN: [Option<&dictgen::DictTrieNode<&'static [&'static str]>> Some(&WORD_EL_NODE), Some(&WORD_EM_NODE), Some(&WORD_EN_NODE), - Some(&WORD_EO_NODE), + None, Some(&WORD_EP_NODE), Some(&WORD_EQ_NODE), Some(&WORD_ER_NODE), @@ -143333,17 +143333,6 @@ pub static WORD_EP_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictg range: 2..=10, }; -static WORD_EO_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { - children: dictgen::DictTrieChild::Flat(&WORD_EO_CHILDREN), - value: None, -}; - -pub static WORD_EO_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { - keys: &[dictgen::InsensitiveStr::Ascii("f")], - values: &[&["of"]], - range: 1..=1, -}; - static WORD_EN_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { children: dictgen::DictTrieChild::Nested(&WORD_EN_CHILDREN), value: None,