mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-23 16:12:25 -05:00
Merge pull request #794 from not-my-profile/man-ND
fix(cli): Allow `Nd` in man, `nd` in css and `ot` & `stap` in sh
This commit is contained in:
commit
3bee8590aa
1 changed files with 28 additions and 0 deletions
|
@ -7,6 +7,24 @@
|
||||||
pub const NO_CHECK_TYPES: &[&str] = &["cert", "lock"];
|
pub const NO_CHECK_TYPES: &[&str] = &["cert", "lock"];
|
||||||
|
|
||||||
pub const TYPE_SPECIFIC_DICTS: &[(&str, StaticDictConfig)] = &[
|
pub const TYPE_SPECIFIC_DICTS: &[(&str, StaticDictConfig)] = &[
|
||||||
|
(
|
||||||
|
"css",
|
||||||
|
StaticDictConfig {
|
||||||
|
ignore_idents: &[
|
||||||
|
"nd", // CSS class used by pygments (see https://github.com/pygments/pygments/blob/2.16.1/pygments/token.py#L146)
|
||||||
|
],
|
||||||
|
ignore_words: &[],
|
||||||
|
},
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"man",
|
||||||
|
StaticDictConfig {
|
||||||
|
ignore_idents: &[
|
||||||
|
"Nd", // .Nd macro of mdoc (see https://man.openbsd.org/mdoc.7#Nd)
|
||||||
|
],
|
||||||
|
ignore_words: &[],
|
||||||
|
},
|
||||||
|
),
|
||||||
(
|
(
|
||||||
"py",
|
"py",
|
||||||
StaticDictConfig {
|
StaticDictConfig {
|
||||||
|
@ -27,6 +45,16 @@ pub const TYPE_SPECIFIC_DICTS: &[(&str, StaticDictConfig)] = &[
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
"sh",
|
||||||
|
StaticDictConfig {
|
||||||
|
ignore_idents: &[
|
||||||
|
"ot", // the test command from GNU coreutils supports an -ot argument (see https://www.gnu.org/software/coreutils/manual/html_node/File-characteristic-tests.html)
|
||||||
|
"stap", // command from SystemTap (see https://sourceware.org/systemtap/man/stap.1.html)
|
||||||
|
],
|
||||||
|
ignore_words: &[],
|
||||||
|
},
|
||||||
|
),
|
||||||
(
|
(
|
||||||
"vim",
|
"vim",
|
||||||
StaticDictConfig {
|
StaticDictConfig {
|
||||||
|
|
Loading…
Reference in a new issue