Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Don't correct eof #959

Merged
merged 1 commit into from Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions crates/typos-dict/assets/allowed.csv
Expand Up @@ -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
1 change: 0 additions & 1 deletion crates/typos-dict/assets/words.csv
Expand Up @@ -22669,7 +22669,6 @@ envvironment,environment
enxt,next
enything,anything
enyway,anyway
eof,of
epecifica,especifica
epect,expect
epected,expected
Expand Down
13 changes: 1 addition & 12 deletions crates/typos-dict/src/word_codegen.rs
Expand Up @@ -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),
Expand Down Expand Up @@ -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,
Expand Down