summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/showcase/code_extractor.go1
-rw-r--r--internal/showcase/language_detector.go1
-rw-r--r--internal/showcase/showcase.go1
3 files changed, 3 insertions, 0 deletions
diff --git a/internal/showcase/code_extractor.go b/internal/showcase/code_extractor.go
index b51761c..98e1aca 100644
--- a/internal/showcase/code_extractor.go
+++ b/internal/showcase/code_extractor.go
@@ -48,6 +48,7 @@ func extractCodeSnippet(repoPath string, languages []LanguageStats) (string, str
"SQL": {".sql"},
"Make": {"Makefile", "makefile", "GNUmakefile"},
"HCL": {".tf", ".tfvars", ".hcl"},
+ "AWK": {".awk"},
}
// Get file extensions for the primary language
diff --git a/internal/showcase/language_detector.go b/internal/showcase/language_detector.go
index f99e8cb..cb9c591 100644
--- a/internal/showcase/language_detector.go
+++ b/internal/showcase/language_detector.go
@@ -75,6 +75,7 @@ func detectLanguages(repoPath string) (languages []LanguageStats, documentation
".tf": "HCL",
".tfvars": "HCL",
".hcl": "HCL",
+ ".awk": "AWK",
}
// Define documentation/text extensions
diff --git a/internal/showcase/showcase.go b/internal/showcase/showcase.go
index 884f81a..bfd7bc8 100644
--- a/internal/showcase/showcase.go
+++ b/internal/showcase/showcase.go
@@ -760,6 +760,7 @@ func extractLanguageForHighlighting(codeLanguage string) string {
"toml": "toml",
"hcl": "hcl",
"vim": "vim",
+ "awk": "awk",
}
if mapped, ok := languageMap[lang]; ok {