Merge pull request #856 from epage/julia

fix(dict): Add Julia-specific dictionary
This commit is contained in:
Ed Page 2023-10-17 13:18:50 -05:00 committed by GitHub
commit 0d5e460b7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 22 additions and 5 deletions

View file

@ -112,7 +112,6 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("js", &["*.js", "*.jsx", "*.vue"]), ("js", &["*.js", "*.jsx", "*.vue"]),
("json", &["*.json"]), ("json", &["*.json"]),
("jsonl", &["*.jsonl"]), ("jsonl", &["*.jsonl"]),
("julia", &["*.jl"]),
("jupyter", &["*.ipynb", "*.jpynb"]), ("jupyter", &["*.ipynb", "*.jpynb"]),
("k", &["*.k"]), ("k", &["*.k"]),
("kotlin", &["*.kt", "*.kts"]), ("kotlin", &["*.kt", "*.kts"]),
@ -145,7 +144,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
"OFL-*[0-9]*", "OFL-*[0-9]*",
]), ]),
("lilypond", &["*.ly", "*.ily"]), ("lilypond", &["*.ly", "*.ily"]),
("lisp", &["*.el", "*.jl", "*.lisp", "*.lsp", "*.sc", "*.scm"]), ("lisp", &["*.el", "*.lisp", "*.lsp", "*.sc", "*.scm"]),
("lock", &["*.lock", "package-lock.json", "requirements.txt", "go.sum", "pnpm-lock.yaml"]), ("lock", &["*.lock", "package-lock.json", "requirements.txt", "go.sum", "pnpm-lock.yaml"]),
("log", &["*.log"]), ("log", &["*.log"]),
("lua", &["*.lua"]), ("lua", &["*.lua"]),

View file

@ -16,6 +16,18 @@ pub const TYPE_SPECIFIC_DICTS: &[(&str, StaticDictConfig)] = &[
ignore_words: &[], ignore_words: &[],
}, },
), ),
(
"jl",
StaticDictConfig {
ignore_idents: &[],
ignore_words: &[
"egal", // name for `===` operator
"egals", // name for `===` operator
"modul", // stand-in for `module` when needing to avoid the keyword
"usig", // stand-in for `using` when needing to avoid the keyword
],
},
),
( (
"man", "man",
StaticDictConfig { StaticDictConfig {

View file

@ -5,3 +5,5 @@ git glossary has both commitish and committish, so don't correct them
HTTP_REFERER is a valid HTTP header field HTTP_REFERER is a valid HTTP header field
It should be reasonable to talk about `<thead>` It should be reasonable to talk about `<thead>`
SHTTP is a protocol

View file

@ -0,0 +1,6 @@
# one egal: ===
# three egals: === === ===
# When we need to refer to keywords without saying them
var modul = "hello";
var usig = "hello";

View file

@ -18,3 +18,4 @@ contiguities,plural of contiguity
bellow,valid word and not just a typo of `below` bellow,valid word and not just a typo of `below`
revered,valid word and not just a typoe of `reversed` revered,valid word and not just a typoe of `reversed`
recuse,valid word despite maybe being a typo of recurse recuse,valid word despite maybe being a typo of recurse
shttp,also a protocol

1 nilable used in ruby community
18 bellow valid word and not just a typo of `below`
19 revered valid word and not just a typoe of `reversed`
20 recuse valid word despite maybe being a typo of recurse
21 shttp also a protocol

View file

@ -52334,7 +52334,6 @@ shtopped,stopped,shopped
shtoppes,stops,shops shtoppes,stops,shops
shtopping,stopping,shopping shtopping,stopping,shopping
shtops,stops,shops shtops,stops,shops
shttp,https
shudown,shutdown shudown,shutdown
shufle,shuffle shufle,shuffle
shuld,should shuld,should

Can't render this file because it is too large.

View file

@ -37383,7 +37383,6 @@ pub static WORD_SHT_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict
dictgen::InsensitiveStr::Ascii("oppes"), dictgen::InsensitiveStr::Ascii("oppes"),
dictgen::InsensitiveStr::Ascii("opping"), dictgen::InsensitiveStr::Ascii("opping"),
dictgen::InsensitiveStr::Ascii("ops"), dictgen::InsensitiveStr::Ascii("ops"),
dictgen::InsensitiveStr::Ascii("tp"),
], ],
values: &[ values: &[
&["shitless"], &["shitless"],
@ -37396,7 +37395,6 @@ pub static WORD_SHT_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict
&["stops", "shops"], &["stops", "shops"],
&["stopping", "shopping"], &["stopping", "shopping"],
&["stops", "shops"], &["stops", "shops"],
&["https"],
], ],
range: 2..=6, range: 2..=6,
}; };