summaryrefslogtreecommitdiff
path: root/internal/showcase/code_extractor.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-07-08 23:34:43 +0300
committerPaul Buetow <paul@buetow.org>2025-07-08 23:34:43 +0300
commit30de46549dd219916aadc12ec02efdb1f2d127aa (patch)
treeadb57ec3a25e6e7441df910afe531454d438d597 /internal/showcase/code_extractor.go
parentdf623bfdcecad9fd4c0f5229ce9af5e8416a9558 (diff)
feat: add AWK language support for syntax highlighting
- Add AWK to language detection (.awk files) - Add AWK to code extractor language extensions - Add AWK to syntax highlighting mapping - Note: cpuinfo project is detected as Make-only because the main script has no file extension (it's a shell script with embedded AWK) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'internal/showcase/code_extractor.go')
-rw-r--r--internal/showcase/code_extractor.go1
1 files changed, 1 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