Просмотр исходного кода

feat: add filetype and icon for .hh extension

Benoît Ryder 1 год назад
Родитель
Сommit
1185e0db11
2 измененных файлов с 2 добавлено и 0 удалено
  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,            // 