Skip to main content
Pre-release

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

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

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

Built distribution (wheel)

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

Release files / rbtr_lang_less-2026.9.0.dev0-py3-none-any.whl

Download URL rbtr_lang_less-2026.9.0.dev0-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3ec2d4150ed3773800e7fd186d4ab1b0bce27435ac957d280d3f4cb38ef2a3c
BLAKE2b-256 checksum
How to use checksums
876b5e17a066821692c91029efc627715a270e70a7a72c26bb187571ce001e71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
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