Skip to content

Commit 9e9e58a

Browse files
authored
feat: add Svelte and Vue support (#158)
Wire up the new Svelte and Vue tree-sitter languages from cocoindex 1.0.3 (cocoindex-io/cocoindex#1937) so `.svelte` and `.vue` files are picked up by the default include patterns and chunked syntax-aware. - Add `**/*.svelte` and `**/*.vue` to DEFAULT_INCLUDED_PATTERNS - Document svelte/vue in the Supported Languages table - Bump cocoindex dev-group floor to >=1.0.3 (the version that adds the tree-sitter parsers); lockfile follows
1 parent 51ea6ef commit 9e9e58a

4 files changed

Lines changed: 17 additions & 13 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,10 +664,12 @@ embedding:
664664
| scala | | `.scala` |
665665
| solidity | | `.sol` |
666666
| sql | | `.sql` |
667+
| svelte | | `.svelte` |
667668
| swift | | `.swift` |
668669
| toml | | `.toml` |
669670
| tsx | | `.tsx` |
670671
| typescript | ts | `.ts` |
672+
| vue | | `.vue` |
671673
| xml | | `.xml` |
672674
| yaml | | `.yaml`, `.yml` |
673675

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ dev = [
8989
"mypy>=1.0.0",
9090
"prek>=0.1.0",
9191
"types-pyyaml>=6.0.12.20250915",
92-
"cocoindex[sentence-transformers]>=1.0.0,<1.1.0",
92+
"cocoindex[sentence-transformers]>=1.0.3,<1.1.0",
9393
]
9494

9595
[tool.ruff]

src/cocoindex_code/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
"**/*.r", # R
5454
"**/*.html", # HTML
5555
"**/*.htm", # HTML
56+
"**/*.svelte", # Svelte
57+
"**/*.vue", # Vue
5658
"**/*.css", # CSS
5759
"**/*.scss", # SCSS
5860
"**/*.json", # JSON

uv.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)