diff --git a/crates/typos-cli/src/file_type_specifics.rs b/crates/typos-cli/src/file_type_specifics.rs index 76442cc..273a250 100644 --- a/crates/typos-cli/src/file_type_specifics.rs +++ b/crates/typos-cli/src/file_type_specifics.rs @@ -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 {