Skip to content

Commit

Permalink
add c++ module interfaces as source file types
Browse files Browse the repository at this point in the history
Signed-off-by: ilobilo <68286835+ilobilo@users.noreply.github.com>
  • Loading branch information
ilobilo authored Jul 26, 2024
1 parent 6ca47ee commit 3c35bb2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/info/filetype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,17 +294,21 @@ const EXTENSION_TYPES: Map<&'static str, FileType> = phf_map! {
"awk" => FileType::Source, // awk
"c" => FileType::Source, // C/C++
"c++" => FileType::Source, // C/C++
"c++m" => FileType::Source, // C/C++ module
"cabal" => FileType::Source, // Cabal
"cc" => FileType::Source, // C/C++
"ccm" => FileType::Source, // C/C++ module
"clj" => FileType::Source, // Clojure
"cp" => FileType::Source, // C/C++ Xcode
"cpp" => FileType::Source, // C/C++
"cppm" => FileType::Source, // C/C++ module
"cr" => FileType::Source, // Crystal
"cs" => FileType::Source, // C#
"css" => FileType::Source, // css
"csx" => FileType::Source, // C#
"cu" => FileType::Source, // CUDA
"cxx" => FileType::Source, // C/C++
"cxxm" => FileType::Source, // C/C++ module
"cypher" => FileType::Source, // Cypher (query language)
"d" => FileType::Source, // D
"dart" => FileType::Source, // Dart
Expand Down Expand Up @@ -338,6 +342,7 @@ const EXTENSION_TYPES: Map<&'static str, FileType> = phf_map! {
"inc" => FileType::Source,
"inl" => FileType::Source, // C/C++ Microsoft
"ipynb" => FileType::Source, // Jupyter Notebook
"ixx" => FileType::Source, // C/C++ module
"java" => FileType::Source, // Java
"jl" => FileType::Source, // Julia
"js" => FileType::Source, // JavaScript
Expand Down

0 comments on commit 3c35bb2

Please sign in to comment.