rbtr-lang-less
Less support for rbtr. Optional plugin — install with
pip install rbtr[less].
What it ingests
Less extends CSS with the Less preprocessor constructs. Definitions map onto rbtr's capture conventions by shape:
- Variables —
@-prefixed declarations (@primary: #333;). - Routines —
.mixin()definitions → functions. Mixin calls are references, not definitions, and are skipped. - Rule sets & at-rule blocks — selectors,
@media,@keyframes→ classes (a named collection of declarations). - Directives —
@charset→ config key. - Imports —
@import→ imports (for cross-file edges).
Chunks produced
name is the declaration/selector; scope is the ancestor rule-set
selectors for a nested rule (CSS-family nesting), else empty.
@primary: #333; /* variable "@primary" */
.rounded(@r) { … } /* function "rounded" */
.btn { … } /* class ".btn" */
@keyframes slide { … } /* class "slide" */
@import "reset"; /* import, metadata {module: "reset"} */
Embedded / injected chunks
None. Less does not embed other languages.
Grammar & dependencies
Uses the tree-sitter-less grammar. Depends on rbtr-lang-css — it reuses
that plugin's public css_nesting_scope helper for CSS-family rule nesting.
Metadata
Release files for rbtr-lang-less 2026.9.0
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_less-2026.9.0.tar.gz | 6.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rbtr_lang_less-2026.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.1 kB
Release files / rbtr_lang_less-2026.9.0.tar.gz
| Download URL | rbtr_lang_less-2026.9.0.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52fcafd7f8f3f49b30b1c68d478e37976f99cf1394c20676c8cc880542da7ec4
|
|
BLAKE2b-256 checksum How to use checksums |
6f7bad16bfbe035e2319ee106df09c401e84c13a51482935bda1a06630aa5ade
|
| 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_less-2026.9.0-py3-none-any.whl
| Download URL | rbtr_lang_less-2026.9.0-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ebf9992745fbf8602cf48748f3e39eb5fa7fa12ea64e3deb7b3802821e74c22
|
|
BLAKE2b-256 checksum How to use checksums |
5bfb3eb367329b69a4db19bbc52a5a1a5221feb76c261dc0541b81045aefb16e
|
| 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}
|