Languages / MATLAB · Edit queries/tags.scm
Tier 2 · Declarative tags.scmMATLAB
Declarative tree-sitter query plugin powered by QueryLanguagePlugin (rgctl-lang-runtime) and crates/rgctl-lang-matlab/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-matlab
- Plugin
- QueryLanguagePlugin (rgctl-lang-matlab)
- Extensions
- .matlab, .m
- Discover
- rgctl discover . -l matlab
- Function Kinds
- function_definition
- Class / Container Kinds
- class_definition
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). |
| @name | 4 | Symbol identifier or target callee/type name. |
| @reference.call | 2 | Emits RelationType::Calls from innermost enclosing function to @name. |
Query source (crates/rgctl-lang-matlab/queries/tags.scm)
; Tier-2 MATLAB tags for rgctl (`handler = "queries"`).
(class_definition
name: (identifier) @name) @definition.class
(function_definition
name: (identifier) @name) @definition.function
(function_call
name: (identifier) @name) @reference.call
(command
(command_name) @name) @reference.callRelated: Tier 2 language support · Tier 1 language support · Discovering and indexing