feat: add Vue support (#66)

Co-authored-by: Colby McHenry <me@colbymchenry.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Abhijeet
2026-05-07 21:56:57 -05:00
committed by GitHub
co-authored by Colby McHenry Claude Opus 4.7
parent 804ab671d4
commit 5ab81746e8
7 changed files with 705 additions and 3 deletions
+7
View File
@@ -22,6 +22,7 @@ import { EXTRACTORS } from './languages';
import { LiquidExtractor } from './liquid-extractor';
import { SvelteExtractor } from './svelte-extractor';
import { DfmExtractor } from './dfm-extractor';
import { VueExtractor } from './vue-extractor';
// Re-export for backward compatibility
export { generateNodeId } from './tree-sitter-helpers';
@@ -2489,6 +2490,12 @@ export function extractFromSource(
return extractor.extract();
}
// Use custom extractor for Vue
if (detectedLanguage === 'vue') {
const extractor = new VueExtractor(filePath, source);
return extractor.extract();
}
// Use custom extractor for Liquid
if (detectedLanguage === 'liquid') {
const extractor = new LiquidExtractor(filePath, source);