Skip to content

Commit

Permalink
fix(cli): Don't suggest nd -> and in css
Browse files Browse the repository at this point in the history
  • Loading branch information
not-my-profile committed Aug 8, 2023
1 parent ab4c7a2 commit 7605141
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/typos-cli/src/file_type_specifics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7605141

Please sign in to comment.