Languages / HTML · Edit queries/tags.scm
Tier 2 · Declarative tags.scmHTML
Declarative tree-sitter query plugin powered by QueryLanguagePlugin (rgctl-lang-runtime) and crates/rgctl-lang-html/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-html
- Plugin
- QueryLanguagePlugin (rgctl-lang-html)
- Extensions
- .html, .htm
- Discover
- rgctl discover . -l html
- Function Kinds
- script_element
- Class / Container Kinds
- element
Capture summary
| Capture | Patterns | Graph mapping |
|---|---|---|
| @definition.function | 1 | Emits SymbolType::Function (acts as caller scope & container). |
| @definition.module | 1 | Emits SymbolType::Module (acts as enclosing container). |
| @name | 2 | Symbol identifier or target callee/type name. |
Query source (crates/rgctl-lang-html/queries/tags.scm)
; Tier-2 HTML tags for rgctl.
(element
(start_tag
(tag_name) @name)) @definition.module
(script_element
(start_tag
(tag_name) @name)) @definition.function
Related: Tier 2 language support · Tier 1 language support · Discovering and indexing