This release is a pre-release and may not be stable for production use.
rbtr-lang-svelte
Svelte support for rbtr. Optional plugin — install with
pip install rbtr[svelte]. Also hosts the shared single-file-component
machinery that rbtr-lang-vue reuses.
What it ingests
.svelte components. A component mixes several languages in one file, and
each part is indexed as itself:
- The markup template becomes one host doc-section chunk (named after the file), so component markup is searchable.
- A comment above the markup is its own chunk, so the note explaining what the component is for stays searchable.
- The
<script>and<style>blocks are delegated to their embedded language by injection (see below) — not re-parsed here.
Chunks produced
<script lang="ts">
import { store } from "./store"; // → import (typescript)
export let name = "world"; // → variable "name" (typescript)
</script>
<h1 class="greeting">Hello {name}</h1> <!-- → doc_section "Greeting" (svelte host) -->
<style lang="scss">
.greeting { color: red; } // → class ".greeting" (scss)
</style>
Embedded / injected chunks
The lang attribute picks the dialect; a bare block uses the fallback:
<script lang="ts">→ TypeScript, bare<script>→ JavaScript<style lang="scss">→ SCSS,lang="less"→ Less, bare<style>→ CSS
These chunks carry their embedded language; the delegated extraction runs
only when the corresponding plugin (e.g. rbtr-lang-javascript,
rbtr-lang-css) is installed.
Grammar & dependencies
Uses the tree-sitter-svelte grammar. Ships chunk_sfc and injections.scm,
which rbtr-lang-vue imports for .vue files (they share the SFC shape).
Metadata
Release files for rbtr-lang-svelte 2026.9.0.dev1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rbtr_lang_svelte-2026.9.0.dev1.tar.gz | 7.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rbtr_lang_svelte-2026.9.0.dev1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.6 kB
Release files / rbtr_lang_svelte-2026.9.0.dev1.tar.gz
| Download URL | rbtr_lang_svelte-2026.9.0.dev1.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b3121064376b7c8f74129cb5300eaa403a1ca19ccc06d5457aa57395e35afbf
|
|
BLAKE2b-256 checksum How to use checksums |
32e461cc66b1de1d15e44ac0341a7dcd00261ded17e55e0435e02c996ecf3b82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / rbtr_lang_svelte-2026.9.0.dev1-py3-none-any.whl
| Download URL | rbtr_lang_svelte-2026.9.0.dev1-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d658d34294127638e845d1d220a156aa621ce84006d7ba28758c8aef4360882
|
|
BLAKE2b-256 checksum How to use checksums |
e1bbd1947dd3d4ee9515eb54929ef3f87a3ca4c100b369d0d226c34de3da13cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|