Languages / Makefile · Edit queries/tags.scm
Tier 2 · Declarative tags.scmMakefile
Declarative tree-sitter query plugin powered by QueryLanguagePlugin (rgctl-lang-runtime) and crates/rgctl-lang-make/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-make
- Plugin
- QueryLanguagePlugin (rgctl-lang-make)
- Extensions
- .mk, .mak
- Discover
- rgctl discover . -l make
- Function Kinds
- rule
- Class / Container Kinds
- —
Capture summary
| Capture | Patterns | Graph mapping |
|---|---|---|
| @definition.constant | 1 | Emits SymbolType::Constant. |
| @definition.function | 1 | Emits SymbolType::Function (acts as caller scope & container). |
| @import.path | 1 | Emits SymbolType::Import with normalized import_path metadata. |
| @name | 2 | Symbol identifier or target callee/type name. |
Query source (crates/rgctl-lang-make/queries/tags.scm)
; Tier-2 Make tags for rgctl.
(rule
(targets) @name) @definition.function
(variable_assignment
name: (word) @name) @definition.constant
(include_directive
filenames: (_) @import.path)
Related: Tier 2 language support · Tier 1 language support · Discovering and indexing