Languages / Protocol Buffers · Edit queries/tags.scm
Tier 2 · Declarative tags.scmProtocol Buffers
Declarative tree-sitter query plugin powered by QueryLanguagePlugin (rgctl-lang-runtime) and crates/rgctl-lang-proto/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-proto
- Plugin
- QueryLanguagePlugin (rgctl-lang-proto)
- Extensions
- .proto
- Discover
- rgctl discover . -l proto
- Function Kinds
- rpc
- Class / Container Kinds
- message
Capture summary
| Capture | Patterns | Graph mapping |
|---|---|---|
| @definition.class | 1 | Emits SymbolType::Class (acts as enclosing container). |
| @definition.function | 1 | Emits SymbolType::Function (acts as caller scope & container). |
| @definition.interface | 1 | Emits SymbolType::Interface (acts as enclosing container). |
| @name | 3 | Symbol identifier or target callee/type name. |
Query source (crates/rgctl-lang-proto/queries/tags.scm)
; Tier-2 Protocol Buffers tags for rgctl (`handler = "queries"`).
(message_name (identifier) @name) @definition.class
(service_name (identifier) @name) @definition.interface
(rpc_name (identifier) @name) @definition.function
Related: Tier 2 language support · Tier 1 language support · Discovering and indexing