Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

tree-sitter-rdx

Tree-sitter grammar for RDX (Reactive Document eXpressions).

Provides syntax highlighting, code folding, and structural analysis for any editor that supports tree-sitter (Neovim, Helix, Zed, Emacs, etc.).

Parsed constructs

  • Frontmatter (--- delimited YAML metadata)
  • Components — open/close tags, self-closing, nested
  • Attributes — string, primitive, JSON, variable, boolean shorthand (including hyphenated names like data-id)
  • Variable interpolation — {$path.to.value}
  • Escape sequences — \{$, \{{, \}}, \{, \\
  • Fenced code blocks with language tags (external scanner)
  • Display math $$...$$ (external scanner) and inline math $...$
  • Plain text and inline code

Markdown formatting (bold, italic, headings, lists) is intentionally treated as plain text — RDX components and variables are the tree-sitter grammar's concern, not Markdown structure.

Usage

Neovim

Add to your tree-sitter config:

require("nvim-treesitter.configs").setup({
  ensure_installed = { "rdx" },
})

Helix

Add to languages.toml:

[[language]]
name = "rdx"
scope = "source.rdx"
file-types = ["rdx"]
roots = []

[language.auto-pairs]

[[grammar]]
name = "rdx"
source = { git = "https://github.com/rdx-lang/tree-sitter-rdx", rev = "main" }

Development

bun install
bunx tree-sitter generate
bunx tree-sitter test

Parse a file

bunx tree-sitter parse test/example.rdx

Project structure

grammar.js          — Grammar definition
src/scanner.c       — External scanner (code fences, math fences, frontmatter)
queries/
  highlights.scm    — Syntax highlighting queries
  injections.scm    — Language injection queries
test/
  corpus/           — Tree-sitter corpus tests
  example.rdx       — Full kitchen-sink example

License

MIT

Metadata

Release files for tree-sitter-rdx 0.1.0b6

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

Source distribution (sdist)

Source distribution for tree-sitter-rdx 0.1.0b6
File Size Uploaded
tree_sitter_rdx-0.1.0b6.tar.gz 19.9 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for tree-sitter-rdx 0.1.0b6
File
tree_sitter_rdx-0.1.0b6-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
tree_sitter_rdx-0.1.0b6-cp310-abi3-win32.whl CPython 3.10 abi3 Windows x86-32 Details
tree_sitter_rdx-0.1.0b6-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details
tree_sitter_rdx-0.1.0b6-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl CPython 3.10 abi3 Linux glibc 2.5+ x86-64, Linux glibc 2.28+ x86-64 Details
tree_sitter_rdx-0.1.0b6-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details

Total release size: 128.0 kB

Release files / tree_sitter_rdx-0.1.0b6.tar.gz

Download URL tree_sitter_rdx-0.1.0b6.tar.gz
Size 19.9 kB
Tags Source
SHA-256 checksum
How to use checksums
00511ef964fdf7de9182a0901b779b8041ed1e7f877c4e9ca537fee59e3dbdd3
BLAKE2b-256 checksum
How to use checksums
eb62b38f309af5a315f41baccc63858bf701921e4b40fabccba83ec47d8cee7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 10, 2026.

Transparency log

Release files / tree_sitter_rdx-0.1.0b6-cp310-abi3-win_amd64.whl

Download URL tree_sitter_rdx-0.1.0b6-cp310-abi3-win_amd64.whl
Size 16.9 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
b3c250c1fcacbe6f9f4928361043c9dc14036e83ee61380326f2e85f3423f57a
BLAKE2b-256 checksum
How to use checksums
282062f70cc87d9560e5f74a08f4b63e7fc7399441461c3ebbcb3d03845ffd0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 10, 2026.

Transparency log

Release files / tree_sitter_rdx-0.1.0b6-cp310-abi3-win32.whl

Download URL tree_sitter_rdx-0.1.0b6-cp310-abi3-win32.whl
Size 16.5 kB
Tags CPython 3.10 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
3247b597717e6c305a1ab5417f616e7ec42e9f05019c791d5104e6dfbe651d53
BLAKE2b-256 checksum
How to use checksums
b757e5527b3466c4f32361e7cf2baab5a13aba85d0a130f75959b2a341f95e36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 10, 2026.

Transparency log

Release files / tree_sitter_rdx-0.1.0b6-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL tree_sitter_rdx-0.1.0b6-cp310-abi3-musllinux_1_2_x86_64.whl
Size 29.8 kB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
bc2252b17503f4f3ebe2614b148e197b64381ecc4f859ffa156e53ada3aa572d
BLAKE2b-256 checksum
How to use checksums
7f91b1431568e066b456ca2c980db79e607aeee8fa10f493d663936a55f7b08f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 10, 2026.

Transparency log

Release files / tree_sitter_rdx-0.1.0b6-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl

Download URL tree_sitter_rdx-0.1.0b6-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Size 29.8 kB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 abi3
SHA-256 checksum
How to use checksums
fb46a93136d1eba7c10deed1951db28a8ea84187999d4cd488626e77725ef9f2
BLAKE2b-256 checksum
How to use checksums
840762053c85c3f9726f9f1c1ba8b78f4ac342d1bee23bea56c0d5b60fcad94e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 10, 2026.

Transparency log

Release files / tree_sitter_rdx-0.1.0b6-cp310-abi3-macosx_11_0_arm64.whl

Download URL tree_sitter_rdx-0.1.0b6-cp310-abi3-macosx_11_0_arm64.whl
Size 15.1 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a6922f2353c338bbfa50521d26fd887787738ea005b56425fefd13cda2896c3b
BLAKE2b-256 checksum
How to use checksums
bb9eca8aa208094e075aed3b19d70346739abc991bf8bd35bc15fe75b423a982
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 10, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0b6 This release

6 release files

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