Commit b715aa1
feat(parser): map 15 additional file extensions to languages
FileDiscovery was missing extension→language mappings for c#, kotlin,
scala, c++, rust, terraform, bicep, proto, xml, markdown, powershell,
bash, ruby, groovy. These languages have detectors registered but files
were dropped at discovery as LanguageUnknown. Adding them to:
- the Language enum (15 new entries)
- Language.String() (consistent with detector SupportedLanguages strings)
- LanguageFromExtension (.cs/.kt/.kts/.scala/.cpp/.h*/.rs/.tf/.bicep/.proto/.xml/.md/.ps1/.sh/.rb/.groovy)
- isStructuredOrTextual (regex-handled, no tree-sitter)
Benchmark: terraform-aws-eks went from 19 discovered → many more after
this fix (validation pending second-pass run).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 20faacc commit b715aa1
1 file changed
Lines changed: 82 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
33 | 50 | | |
34 | 51 | | |
35 | 52 | | |
| |||
60 | 77 | | |
61 | 78 | | |
62 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
63 | 110 | | |
64 | 111 | | |
65 | 112 | | |
| |||
95 | 142 | | |
96 | 143 | | |
97 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
98 | 173 | | |
99 | 174 | | |
100 | 175 | | |
| |||
147 | 222 | | |
148 | 223 | | |
149 | 224 | | |
150 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
151 | 232 | | |
152 | 233 | | |
153 | 234 | | |
| |||
0 commit comments