From e5e8f25c8e993ef99f097d01473456f504ee1613 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Tue, 8 Aug 2023 08:00:03 +0200 Subject: [PATCH] fix(cli): Allow nd in css --- 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 4d7d02e..e5c00af 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)] = &[ + ( + "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 {