From 5181c42c57a328429d04eba449b107612fea7176 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Mon, 7 Aug 2023 22:44:04 +0200 Subject: [PATCH] fix(cli): Allow Nd in man pages --- crates/typos-cli/src/file_type_specifics.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crates/typos-cli/src/file_type_specifics.rs b/crates/typos-cli/src/file_type_specifics.rs index 76442cc..4d7d02e 100644 --- a/crates/typos-cli/src/file_type_specifics.rs +++ b/crates/typos-cli/src/file_type_specifics.rs @@ -7,6 +7,15 @@ pub const NO_CHECK_TYPES: &[&str] = &["cert", "lock"]; pub const TYPE_SPECIFIC_DICTS: &[(&str, StaticDictConfig)] = &[ + ( + "man", + StaticDictConfig { + ignore_idents: &[ + "Nd", // .Nd macro of mdoc (see https://man.openbsd.org/mdoc.7#Nd) + ], + ignore_words: &[], + }, + ), ( "py", StaticDictConfig {