Languages / TOML · Edit queries/tags.scm

Tier 2 · Declarative tags.scm

TOML

Declarative tree-sitter query plugin powered by QueryLanguagePlugin (rgctl-lang-runtime) and crates/rgctl-lang-toml/queries/tags.scm. Compiles once at startup, validates captures against the Tier-2 vocabulary gate, and extracts symbols, container hierarchy (Container::member), imports, and call edges.

Grammar Crate
tree-sitter-toml-ng
Plugin
QueryLanguagePlugin (rgctl-lang-toml)
Extensions
.toml
Discover
rgctl discover . -l toml
Function Kinds
—
Class / Container Kinds
table

Capture summary

CapturePatternsGraph mapping
@definition.constant1Emits SymbolType::Constant.
@definition.module1Emits SymbolType::Module (acts as enclosing container).
@name2Symbol identifier or target callee/type name.

Query source (crates/rgctl-lang-toml/queries/tags.scm)

; Tier-2 TOML tags for rgctl (standalone; config-formats owns .toml routing).

(table
  (bare_key) @name) @definition.module

(pair
  (bare_key) @name) @definition.constant

Related: Tier 2 language support · Tier 1 language support · Discovering and indexing