Add Liquid template language support for Shopify themes

- Add 'liquid' to Language type and default include patterns
- Create LiquidExtractor with regex-based extraction (tree-sitter-liquid has ABI issues)
- Extract render/include/section references as component nodes
- Extract schema blocks as constant nodes with parsed names
- Extract assign statements as variable nodes
- Create file relationship edges for snippet/section references

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Colby McHenry
2026-01-19 15:59:40 -06:00
co-authored by Claude Opus 4.5
parent 8d1fb680e5
commit a4ddedb197
5 changed files with 343 additions and 6 deletions
+3
View File
@@ -71,6 +71,7 @@ export type Language =
| 'ruby'
| 'swift'
| 'kotlin'
| 'liquid'
| 'unknown';
// =============================================================================
@@ -496,6 +497,8 @@ export const DEFAULT_CONFIG: CodeGraphConfig = {
'**/*.php',
// Ruby
'**/*.rb',
// Liquid (Shopify themes)
'**/*.liquid',
],
exclude: [
// Version control