From b96d63ea97c3a919a2951b11ddcbad4674adb7df Mon Sep 17 00:00:00 2001 From: Peter Karakas Date: Thu, 13 Jan 2022 22:27:38 +0100 Subject: [PATCH 1/2] Recognize Eclass and Ebuild files --- languagedetection/analyzer.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/languagedetection/analyzer.go b/languagedetection/analyzer.go index 2ad459b..8592107 100644 --- a/languagedetection/analyzer.go +++ b/languagedetection/analyzer.go @@ -115,6 +115,8 @@ var fileExtensionMap = map[string][]string{ "Dart": {"dart"}, "Groovy": {"groovy", "gvy", "gy", "gsh"}, "HTML+Razor": {"cshtml"}, + "Ebuild": {"ebuild"}, + "Eclass": {"eclass"}, "EJS": {"ejs"}, "Elixir": {"ex", "exs"}, "Elm": {"elm"}, @@ -168,5 +170,5 @@ var fileExtensionMap = map[string][]string{ "Xtend": {"xtend"}, "Xtext": {"xtext"}, "Yacc": {"y"}, - "Zig": {"zig"}, + "Zig": {"zig"}, } From 9e79216bd59c7d06aad06979512ef77ebc269889 Mon Sep 17 00:00:00 2001 From: Peter Karakas Date: Mon, 17 Jan 2022 21:44:36 +0100 Subject: [PATCH 2/2] Ebuild and eclass files belong to the same language --- languagedetection/analyzer.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/languagedetection/analyzer.go b/languagedetection/analyzer.go index 8592107..e08e4af 100644 --- a/languagedetection/analyzer.go +++ b/languagedetection/analyzer.go @@ -115,8 +115,7 @@ var fileExtensionMap = map[string][]string{ "Dart": {"dart"}, "Groovy": {"groovy", "gvy", "gy", "gsh"}, "HTML+Razor": {"cshtml"}, - "Ebuild": {"ebuild"}, - "Eclass": {"eclass"}, + "Ebuild": {"ebuild", "eclass"}, "EJS": {"ejs"}, "Elixir": {"ex", "exs"}, "Elm": {"elm"},