Languages / JSON · Edit queries/tags.scm
Tier 2 · Declarative tags.scmJSON
Declarative tree-sitter query plugin powered by QueryLanguagePlugin (rgctl-lang-runtime) and crates/rgctl-lang-json/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-json
- Plugin
- QueryLanguagePlugin (rgctl-lang-json)
- Extensions
- .json
- Discover
- rgctl discover . -l json
- Function Kinds
- —
- Class / Container Kinds
- object
Capture summary
| Capture | Patterns | Graph mapping |
|---|---|---|
| @definition.constant | 1 | Emits SymbolType::Constant. |
| @name | 1 | Symbol identifier or target callee/type name. |
Query source (crates/rgctl-lang-json/queries/tags.scm)
; Tier-2 JSON tags for rgctl (`handler = "queries"`).
(pair
key: (string (string_content) @name)) @definition.constant
Related: Tier 2 language support · Tier 1 language support · Discovering and indexing