Languages / Makefile · Edit queries/tags.scm

Tier 2 · Declarative tags.scm

Makefile

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

CapturePatternsGraph mapping
@definition.constant1Emits SymbolType::Constant.
@definition.function1Emits SymbolType::Function (acts as caller scope & container).
@import.path1Emits SymbolType::Import with normalized import_path metadata.
@name2Symbol 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