diff --git a/gitnexus-shared/src/language-detection.ts b/gitnexus-shared/src/language-detection.ts index d31f9d58d..423a19255 100644 --- a/gitnexus-shared/src/language-detection.ts +++ b/gitnexus-shared/src/language-detection.ts @@ -41,6 +41,7 @@ const EXTENSION_MAP: Record = { [SupportedLanguages.Kotlin]: ['.kt', '.kts'], [SupportedLanguages.Swift]: ['.swift'], [SupportedLanguages.Dart]: ['.dart'], + [SupportedLanguages.Bash]: ['.sh', '.bash'], [SupportedLanguages.Vue]: ['.vue'], [SupportedLanguages.Cobol]: ['.cbl', '.cob', '.cpy', '.cobol'], } satisfies Record; // Ensure exhaustiveness @@ -99,6 +100,7 @@ const SYNTAX_MAP: Record = { [SupportedLanguages.Kotlin]: 'kotlin', [SupportedLanguages.Swift]: 'swift', [SupportedLanguages.Dart]: 'dart', + [SupportedLanguages.Bash]: 'bash', [SupportedLanguages.Vue]: 'typescript', [SupportedLanguages.Cobol]: 'cobol', } satisfies Record; // Ensure exhaustiveness diff --git a/gitnexus-shared/src/languages.ts b/gitnexus-shared/src/languages.ts index 29edb8d1e..fd600ca7d 100644 --- a/gitnexus-shared/src/languages.ts +++ b/gitnexus-shared/src/languages.ts @@ -20,6 +20,7 @@ export enum SupportedLanguages { Swift = 'swift', Dart = 'dart', Vue = 'vue', + Bash = 'bash', /** Standalone regex processor — no tree-sitter, no LanguageProvider. */ Cobol = 'cobol', } diff --git a/gitnexus-shared/src/scope-resolution/language-classification.ts b/gitnexus-shared/src/scope-resolution/language-classification.ts index 10c556cda..f275b0948 100644 --- a/gitnexus-shared/src/scope-resolution/language-classification.ts +++ b/gitnexus-shared/src/scope-resolution/language-classification.ts @@ -39,6 +39,7 @@ export const LanguageClassifications: Readonly