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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tree_sitter_rdx-0.1.0b6.tar.gz (19.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tree_sitter_rdx-0.1.0b6-cp310-abi3-win_amd64.whl (16.9 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_rdx-0.1.0b6-cp310-abi3-win32.whl (16.5 kB view details)

Uploaded CPython 3.10+Windows x86

tree_sitter_rdx-0.1.0b6-cp310-abi3-musllinux_1_2_x86_64.whl (29.8 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ x86-64

tree_sitter_rdx-0.1.0b6-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (29.8 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

tree_sitter_rdx-0.1.0b6-cp310-abi3-macosx_11_0_arm64.whl (15.1 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file tree_sitter_rdx-0.1.0b6.tar.gz.

File metadata

  • Download URL: tree_sitter_rdx-0.1.0b6.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tree_sitter_rdx-0.1.0b6.tar.gz
Algorithm Hash digest
SHA256 00511ef964fdf7de9182a0901b779b8041ed1e7f877c4e9ca537fee59e3dbdd3
MD5 91227265cccd47d5bcfe261261b3377f
BLAKE2b-256 eb62b38f309af5a315f41baccc63858bf701921e4b40fabccba83ec47d8cee7f

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_rdx-0.1.0b6.tar.gz:

Publisher: release.yml on rdx-lang/tree-sitter-rdx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tree_sitter_rdx-0.1.0b6-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for tree_sitter_rdx-0.1.0b6-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b3c250c1fcacbe6f9f4928361043c9dc14036e83ee61380326f2e85f3423f57a
MD5 86ae0698109242b703b0b3af15474c4b
BLAKE2b-256 282062f70cc87d9560e5f74a08f4b63e7fc7399441461c3ebbcb3d03845ffd0a

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_rdx-0.1.0b6-cp310-abi3-win_amd64.whl:

Publisher: release.yml on rdx-lang/tree-sitter-rdx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tree_sitter_rdx-0.1.0b6-cp310-abi3-win32.whl.

File metadata

File hashes

Hashes for tree_sitter_rdx-0.1.0b6-cp310-abi3-win32.whl
Algorithm Hash digest
SHA256 3247b597717e6c305a1ab5417f616e7ec42e9f05019c791d5104e6dfbe651d53
MD5 1bf9b2a86bb826fcc749755314cdf1dd
BLAKE2b-256 b757e5527b3466c4f32361e7cf2baab5a13aba85d0a130f75959b2a341f95e36

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_rdx-0.1.0b6-cp310-abi3-win32.whl:

Publisher: release.yml on rdx-lang/tree-sitter-rdx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tree_sitter_rdx-0.1.0b6-cp310-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_rdx-0.1.0b6-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 bc2252b17503f4f3ebe2614b148e197b64381ecc4f859ffa156e53ada3aa572d
MD5 46feed63b8905413b986419a0e3db726
BLAKE2b-256 7f91b1431568e066b456ca2c980db79e607aeee8fa10f493d663936a55f7b08f

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_rdx-0.1.0b6-cp310-abi3-musllinux_1_2_x86_64.whl:

Publisher: release.yml on rdx-lang/tree-sitter-rdx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tree_sitter_rdx-0.1.0b6-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_rdx-0.1.0b6-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fb46a93136d1eba7c10deed1951db28a8ea84187999d4cd488626e77725ef9f2
MD5 0c38bdc2580cc691c4c5b4a1d717aaa4
BLAKE2b-256 840762053c85c3f9726f9f1c1ba8b78f4ac342d1bee23bea56c0d5b60fcad94e

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_rdx-0.1.0b6-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl:

Publisher: release.yml on rdx-lang/tree-sitter-rdx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tree_sitter_rdx-0.1.0b6-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_rdx-0.1.0b6-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6922f2353c338bbfa50521d26fd887787738ea005b56425fefd13cda2896c3b
MD5 506a40d8de57e70f4c8231cba17a138c
BLAKE2b-256 bb9eca8aa208094e075aed3b19d70346739abc991bf8bd35bc15fe75b423a982

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_rdx-0.1.0b6-cp310-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on rdx-lang/tree-sitter-rdx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0b6 This release

6 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page