Tree-sitter grammar for RDX (Reactive Document eXpressions)
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00511ef964fdf7de9182a0901b779b8041ed1e7f877c4e9ca537fee59e3dbdd3
|
|
| MD5 |
91227265cccd47d5bcfe261261b3377f
|
|
| BLAKE2b-256 |
eb62b38f309af5a315f41baccc63858bf701921e4b40fabccba83ec47d8cee7f
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tree_sitter_rdx-0.1.0b6.tar.gz -
Subject digest:
00511ef964fdf7de9182a0901b779b8041ed1e7f877c4e9ca537fee59e3dbdd3 - Sigstore transparency entry: 1077366312
- Sigstore integration time:
-
Permalink:
rdx-lang/tree-sitter-rdx@52cb0ad6c22f8a6ab0c72f692034af4273dd3040 -
Branch / Tag:
refs/tags/v0.1.0-beta.6 - Owner: https://github.com/rdx-lang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@52cb0ad6c22f8a6ab0c72f692034af4273dd3040 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tree_sitter_rdx-0.1.0b6-cp310-abi3-win_amd64.whl.
File metadata
- Download URL: tree_sitter_rdx-0.1.0b6-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 16.9 kB
- Tags: CPython 3.10+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3c250c1fcacbe6f9f4928361043c9dc14036e83ee61380326f2e85f3423f57a
|
|
| MD5 |
86ae0698109242b703b0b3af15474c4b
|
|
| BLAKE2b-256 |
282062f70cc87d9560e5f74a08f4b63e7fc7399441461c3ebbcb3d03845ffd0a
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tree_sitter_rdx-0.1.0b6-cp310-abi3-win_amd64.whl -
Subject digest:
b3c250c1fcacbe6f9f4928361043c9dc14036e83ee61380326f2e85f3423f57a - Sigstore transparency entry: 1077366336
- Sigstore integration time:
-
Permalink:
rdx-lang/tree-sitter-rdx@52cb0ad6c22f8a6ab0c72f692034af4273dd3040 -
Branch / Tag:
refs/tags/v0.1.0-beta.6 - Owner: https://github.com/rdx-lang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@52cb0ad6c22f8a6ab0c72f692034af4273dd3040 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tree_sitter_rdx-0.1.0b6-cp310-abi3-win32.whl.
File metadata
- Download URL: tree_sitter_rdx-0.1.0b6-cp310-abi3-win32.whl
- Upload date:
- Size: 16.5 kB
- Tags: CPython 3.10+, Windows x86
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3247b597717e6c305a1ab5417f616e7ec42e9f05019c791d5104e6dfbe651d53
|
|
| MD5 |
1bf9b2a86bb826fcc749755314cdf1dd
|
|
| BLAKE2b-256 |
b757e5527b3466c4f32361e7cf2baab5a13aba85d0a130f75959b2a341f95e36
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tree_sitter_rdx-0.1.0b6-cp310-abi3-win32.whl -
Subject digest:
3247b597717e6c305a1ab5417f616e7ec42e9f05019c791d5104e6dfbe651d53 - Sigstore transparency entry: 1077366371
- Sigstore integration time:
-
Permalink:
rdx-lang/tree-sitter-rdx@52cb0ad6c22f8a6ab0c72f692034af4273dd3040 -
Branch / Tag:
refs/tags/v0.1.0-beta.6 - Owner: https://github.com/rdx-lang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@52cb0ad6c22f8a6ab0c72f692034af4273dd3040 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tree_sitter_rdx-0.1.0b6-cp310-abi3-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: tree_sitter_rdx-0.1.0b6-cp310-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 29.8 kB
- Tags: CPython 3.10+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc2252b17503f4f3ebe2614b148e197b64381ecc4f859ffa156e53ada3aa572d
|
|
| MD5 |
46feed63b8905413b986419a0e3db726
|
|
| BLAKE2b-256 |
7f91b1431568e066b456ca2c980db79e607aeee8fa10f493d663936a55f7b08f
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tree_sitter_rdx-0.1.0b6-cp310-abi3-musllinux_1_2_x86_64.whl -
Subject digest:
bc2252b17503f4f3ebe2614b148e197b64381ecc4f859ffa156e53ada3aa572d - Sigstore transparency entry: 1077366355
- Sigstore integration time:
-
Permalink:
rdx-lang/tree-sitter-rdx@52cb0ad6c22f8a6ab0c72f692034af4273dd3040 -
Branch / Tag:
refs/tags/v0.1.0-beta.6 - Owner: https://github.com/rdx-lang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@52cb0ad6c22f8a6ab0c72f692034af4273dd3040 -
Trigger Event:
push
-
Statement type:
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
- Download URL: tree_sitter_rdx-0.1.0b6-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
- Upload date:
- Size: 29.8 kB
- Tags: CPython 3.10+, manylinux: glibc 2.28+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb46a93136d1eba7c10deed1951db28a8ea84187999d4cd488626e77725ef9f2
|
|
| MD5 |
0c38bdc2580cc691c4c5b4a1d717aaa4
|
|
| BLAKE2b-256 |
840762053c85c3f9726f9f1c1ba8b78f4ac342d1bee23bea56c0d5b60fcad94e
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tree_sitter_rdx-0.1.0b6-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl -
Subject digest:
fb46a93136d1eba7c10deed1951db28a8ea84187999d4cd488626e77725ef9f2 - Sigstore transparency entry: 1077366382
- Sigstore integration time:
-
Permalink:
rdx-lang/tree-sitter-rdx@52cb0ad6c22f8a6ab0c72f692034af4273dd3040 -
Branch / Tag:
refs/tags/v0.1.0-beta.6 - Owner: https://github.com/rdx-lang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@52cb0ad6c22f8a6ab0c72f692034af4273dd3040 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tree_sitter_rdx-0.1.0b6-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: tree_sitter_rdx-0.1.0b6-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 15.1 kB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6922f2353c338bbfa50521d26fd887787738ea005b56425fefd13cda2896c3b
|
|
| MD5 |
506a40d8de57e70f4c8231cba17a138c
|
|
| BLAKE2b-256 |
bb9eca8aa208094e075aed3b19d70346739abc991bf8bd35bc15fe75b423a982
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tree_sitter_rdx-0.1.0b6-cp310-abi3-macosx_11_0_arm64.whl -
Subject digest:
a6922f2353c338bbfa50521d26fd887787738ea005b56425fefd13cda2896c3b - Sigstore transparency entry: 1077366321
- Sigstore integration time:
-
Permalink:
rdx-lang/tree-sitter-rdx@52cb0ad6c22f8a6ab0c72f692034af4273dd3040 -
Branch / Tag:
refs/tags/v0.1.0-beta.6 - Owner: https://github.com/rdx-lang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@52cb0ad6c22f8a6ab0c72f692034af4273dd3040 -
Trigger Event:
push
-
Statement type: