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:
Ed Page 2023-08-08 11:59:40 -05:00 committed by GitHub
commit 3bee8590aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,24 @@
pub const NO_CHECK_TYPES: &[&str] = &["cert", "lock"];
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",
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",
StaticDictConfig {