Skip to main content
Pre-release

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.dev3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rbtr-lang-svelte 2026.9.0.dev3
File Size Uploaded
rbtr_lang_svelte-2026.9.0.dev3.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rbtr-lang-svelte 2026.9.0.dev3
File Interpreter ABI Platform
rbtr_lang_svelte-2026.9.0.dev3-py3-none-any.whl Python 3 none any Details

Total release size: 19.6 kB

Release files / rbtr_lang_svelte-2026.9.0.dev3.tar.gz

Download URL rbtr_lang_svelte-2026.9.0.dev3.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fc6da9c615e9c7e03f3dc94ce1566b120db5dcf2b394d192d406ac1fa166ab5c
BLAKE2b-256 checksum
How to use checksums
75575fe0ef08fb09b6ebd8ca14525a83acbe8aaf16d2c861c568d28723f5ed60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / rbtr_lang_svelte-2026.9.0.dev3-py3-none-any.whl

Download URL rbtr_lang_svelte-2026.9.0.dev3-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ddc5850a29223439b892babf583090c6d4d423d886e6c5307469a4348124039
BLAKE2b-256 checksum
How to use checksums
fd431ca370fbf72ad1e707a81bca2754ed60cab947444e37d488934d70fb9f09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page