Ver Fonte

feat: add filetype and icon for .hh extension

Benoît Ryder há 1 ano atrás
pai
commit
1185e0db11
2 ficheiros alterados com 2 adições e 0 exclusões
  1. 1 0
      src/info/filetype.rs
  2. 1 0
      src/output/icons.rs

+ 1 - 0
src/info/filetype.rs

@@ -329,6 +329,7 @@ const EXTENSION_TYPES: Map<&'static str, FileType> = phf_map! {
     "gvy"        => FileType::Source, // Groovy
     "h"          => FileType::Source, // C/C++ header
     "h++"        => FileType::Source, // C/C++ header
+    "hh"         => FileType::Source, // C/C++ header
     "hpp"        => FileType::Source, // C/C++ header
     "hs"         => FileType::Source, // Haskell
     "htc"        => FileType::Source, // JavaScript

+ 1 - 0
src/output/icons.rs

@@ -496,6 +496,7 @@ const EXTENSION_ICONS: Map<&'static str, char> = phf_map! {
     "heics"          => Icons::VIDEO,            // 
     "heif"           => Icons::IMAGE,            // 
     "hex"            => '\u{f12a7}',             // 󱊧
+    "hh"             => Icons::LANG_CPP,         // 
     "hpp"            => Icons::LANG_CPP,         // 
     "hs"             => Icons::LANG_HASKELL,     // 
     "htm"            => Icons::HTML5,            // 