diff --git a/src/extraction/grammars.ts b/src/extraction/grammars.ts index ef6307a92..049ec1051 100644 --- a/src/extraction/grammars.ts +++ b/src/extraction/grammars.ts @@ -39,6 +39,8 @@ const WASM_GRAMMAR_FILES: Record = { r: 'tree-sitter-r.wasm', luau: 'tree-sitter-luau.wasm', objc: 'tree-sitter-objc.wasm', + mlir: 'tree-sitter-mlir.wasm', + tablegen: 'tree-sitter-tablegen.wasm', }; /** @@ -115,6 +117,8 @@ export const EXTENSION_MAP: Record = { // shape as the `.yml` variants — the YAML/properties extractor emits one node // per leaf key, and the Spring resolver links `@Value("${k}")` references. '.properties': 'properties', + '.mlir': 'mlir', + '.td': 'tablegen', }; /** @@ -428,6 +432,8 @@ export function getLanguageDisplayName(language: Language): string { xml: 'XML', properties: 'Java properties', unknown: 'Unknown', + mlir: 'MLIR', + tablegen: 'TableGen', }; return names[language] || language; } diff --git a/src/extraction/wasm/tree-sitter-mlir.wasm b/src/extraction/wasm/tree-sitter-mlir.wasm new file mode 100755 index 000000000..a5b258921 Binary files /dev/null and b/src/extraction/wasm/tree-sitter-mlir.wasm differ diff --git a/src/extraction/wasm/tree-sitter-tablegen.wasm b/src/extraction/wasm/tree-sitter-tablegen.wasm new file mode 100755 index 000000000..c53592b4d Binary files /dev/null and b/src/extraction/wasm/tree-sitter-tablegen.wasm differ diff --git a/src/types.ts b/src/types.ts index 656bb1090..06584384d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -95,6 +95,8 @@ export const LANGUAGES = [ 'twig', 'xml', 'properties', + 'mlir', + 'tablegen', 'unknown', ] as const;