feat: add c language compatibility

This commit is contained in:
Affaan Mustafa
2026-04-08 15:42:49 -07:00
parent 9bd8e8b3c7
commit 86cbe3d616
6 changed files with 45 additions and 2 deletions

View File

@@ -37,6 +37,7 @@ const LEGACY_COMPAT_BASE_MODULE_IDS_BY_TARGET = Object.freeze({
],
});
const LEGACY_LANGUAGE_ALIAS_TO_CANONICAL = Object.freeze({
c: 'c',
cpp: 'cpp',
csharp: 'csharp',
go: 'go',
@@ -52,6 +53,7 @@ const LEGACY_LANGUAGE_ALIAS_TO_CANONICAL = Object.freeze({
typescript: 'typescript',
});
const LEGACY_LANGUAGE_EXTRA_MODULE_IDS = Object.freeze({
c: ['framework-language'],
cpp: ['framework-language'],
csharp: ['framework-language'],
go: ['framework-language'],

View File

@@ -50,6 +50,11 @@ const LANGUAGE_RULES = [
markers: ['pom.xml', 'build.gradle', 'build.gradle.kts'],
extensions: ['.java']
},
{
type: 'c',
markers: [],
extensions: ['.c']
},
{
type: 'csharp',
markers: [],